import numpy as np import pandas as pd df = pd.read_csv(r'C:/Users/hanhan/PycharmProjects/pythonProject/data.csv',encoding = 'gbk') t = np.array(df['时间']) print('初始值的t=',t) t = np.array(df[df['时间']<10]['时间']) print('筛选后的t=',t)
欢迎分享,转载请注明来源:内存溢出
import numpy as np import pandas as pd df = pd.read_csv(r'C:/Users/hanhan/PycharmProjects/pythonProject/data.csv',encoding = 'gbk') t = np.array(df['时间']) print('初始值的t=',t) t = np.array(df[df['时间']<10]['时间']) print('筛选后的t=',t)
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)