0

我想减少这个数据框,只存储 1990-01-02 : 2010-06-30 之间日期的行

df = pd.read_csv('___.txt',header=None,parse_dates=True, index_col={0},names="date open high low close date2 misc".split())

鉴于我的日期被认为是时间戳,这样的事情不起作用:

w=df.ix[:,'1990-01-02':,:]

 or 

 df.index

也许列表理解会更好,但我不确定如何索引时间戳在这里。感谢您的建议。非常感谢。

4

0 回答 0