Can't use numpy.sign(), but the book can used, I don't know why
from pandas.io.parsers import read_csv
import numpy as np
df = read_csv("WHO.csv")
country_col = df['Country']
print("df signs:n", np.sign(df))
Traceback(最近调用最后一次):print(“df signs: n”,np.sign(df))中的文件“/home/yuyuyu/Documents/pythonData/pandas/series2.py”,第20行TypeError:无法编译类型:str()<int()
链接地址: http://www.djcxy.com/p/5368.html上一篇: 排序数组中的“==”不比未排序数组快吗?