import pandas as pdimport numpy as npdf = pd.read_csv('000917.csv',encoding='gbk')df = df[df['涨跌幅']!='None']df['涨跌幅'] = df['涨跌幅'].astype(np.float64)print(df[df['涨跌幅']>5])
本文共 219 字,大约阅读时间需要 1 分钟。
import pandas as pdimport numpy as npdf = pd.read_csv('000917.csv',encoding='gbk')df = df[df['涨跌幅']!='None']df['涨跌幅'] = df['涨跌幅'].astype(np.float64)print(df[df['涨跌幅']>5])
转载于:https://www.cnblogs.com/wumac/p/6053602.html