1
我有日期,這樣索引的數據幀:如何索引與「孔」有TimeSeries的一個數據幀無孔
<class 'pandas.core.frame.DataFrame'>
DatetimeIndex: 1853141 entries, 2012-03-01 00:00:00 to 2012-06-16 23:59:55
Data columns:
Open Bid ESM2 1853141 non-null values
Open Ask ESM2 1853141 non-null values
dtypes: float64(2)
指數有一些「洞」了一段5秒,所以我創建具有相同的日期範圍和週期的TimeSeries無孔:
<class 'pandas.tseries.index.DatetimeIndex'>
[2012-03-01 00:00:00, ..., 2012-06-16 23:59:55]
Length: 1866240, Freq: 5S, Timezone: None
現在我想利用這段時間系列作爲指標上面列出楠洞的數據幀。我該怎麼做