标签: pandas numpy dataframe
我正在尝试
assert df[col].dtype in ('int', 'float64'), '{} {} {}'.format(x[col].dtype, col, x[col])
我得到了
AttributeError: 'ObjectBlock' object has no attribute 'sp_index' pandas=0.23.3 numpy=1.14.5