我正在研究graphlab create with
data=graphlab.SFrame.read_csv('test.csv')
我试图获得其中一列的中位数
data_train.fillna(('Credit_History',data_train['Credit_History'].median()))
但我得到了错误
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-247-50ed3eb09dcc> in <module>()
----> 1 data_train.fillna(('Credit_History',data_train['Credit_History'].median()))
AttributeError: 'SArray' object has no attribute 'median'
data.show() 将显示该列的中位数,但有人知道如何解决这个问题吗?