按照这里的例子
http://www.randalolson.com/2013/01/14/filling-in-pythons-gaps-in-statistics-packages-with-rmagic/
我在 IPython 笔记本中在这里找到的不同数据集上尝试了相同的方法。
https://github.com/burakbayramli/kod/blob/master/delltest/dell.tgz
from pandas import *
orders = read_csv("dell.csv",sep=",")
%load_ext rmagic
%R -i orders print(summary(orders))
我明白了
Length Class Mode
[1,] 25 -none- list
[2,] 25 -none- list
[3,] 25 -none- list
..
但是在 R 中也是一样的
data <- read.csv ("dell.csv",header=TRUE,sep=",")
print (summary(data))
给我正确的摘要信息。
rank per_customer_count total_total_amount orderid
Min. : 1.000 Min. : 1.000 Min. : 0.14 Min. : 1
1st Qu.: 2.000 1st Qu.: 6.000 1st Qu.: 866.11 1st Qu.: 2964
Median : 4.000 Median : 8.000 Median : 1764.08 Median : 5980
Mean : 4.997 Mean : 9.426 Mean : 2004.95 Mean : 5987
3rd Qu.: 7.000 3rd Qu.:12.000 3rd Qu.: 2856.06 3rd Qu.: 9004
...
有任何想法吗?