怎么对dataframe的一列求众数?
我试了np.mode,不过好像并没有用,报错如下
np.mode(data['type'])
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in ()
----> 1 np.mode(data['type'])
AttributeError: module 'numpy' has no attribute 'mode'