不能使用numpy.sign(),但该书可以使用,我不知道为什么

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/5367.html

上一篇: Can't use numpy.sign(), but the book can used, I don't know why

下一篇: Correct way to write line to file?