You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [1]: importpandasaspdIn [2]: index=pd.date_range('1-1-2000', '2-15-2000', freq='h')
In [3]: index=index.union(pd.date_range('4-15-2000', '5-15-2000', freq='h'))
In [4]: s=pd.Series(range(len(index)), index=index)
In [5]: a=s.loc[:'4-15-2000'].resample('30T').ohlc()
In [6]: b=s.loc[:'4-14-2000'].resample('30T').ohlc()
In [7]: a.head()
Out[7]:
openhighlowclose2000-01-0100:00:000.00.00.00.02000-01-0100:30:00NaNNaNNaNNaN2000-01-0101:00:001.01.01.01.02000-01-0101:30:00NaNNaNNaNNaN2000-01-0102:00:002.02.02.02.0In [8]: b.head()
Out[8]:
2000-01-0100:00:000.02000-01-0100:30:00NaN2000-01-0101:00:001.02000-01-0101:30:00NaN2000-01-0102:00:002.0Freq: 30T, dtype: float64In [9]: pd.__version__Out[9]: u'0.18.0rc1'
The text was updated successfully, but these errors were encountered:
jreback
changed the title
Resample with OHLC sometimes results in series on pandas release 0.8.0.rc1
Resample with OHLC sometimes results in series on pandas release 0.18.0.rc1
Feb 15, 2016
The text was updated successfully, but these errors were encountered: