赞
踩
import numpy as np
import pandas as pd
import random
rnd_1 = [random.randrange(1,20) for x in range(1000)]
rnd_2 = [random.randrange(1,20) for x in range(1000)]
rnd_3 = [random.randrange(1,20) for x in range(1000)]
fecha = pd.date_range('2012-4-10', '2015-1-4')
data = pd.DataFrame({'fecha':fecha, 'rnd_1': rnd_1, 'rnd_2': rnd_2, 'rnd_3': rnd_3})
data.loc[data["fecha"] == "2013-04-10"]
结果
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。