The first one is only a glitch and in the doc you say that the file unzipped in the data directory should be sample.csv, instead it is f.csv
The second one is a bug:
Traceback (most recent call last):
File "ml.py", line 56, in
main(sys.argv[1])
File "ml.py", line 21, in main
ticks_data = grouped_data['Sell'].resample('24H').ohlc()
File "/usr/lib/python2.7/dist-packages/pandas/core/generic.py", line 2360, in getattr
(type(self).name, name))
AttributeError: 'Series' object has no attribute 'ohlc'
I had a couple problem with your ml.py come
The first one is only a glitch and in the doc you say that the file unzipped in the data directory should be sample.csv, instead it is f.csv
The second one is a bug:
Traceback (most recent call last):
File "ml.py", line 56, in
main(sys.argv[1])
File "ml.py", line 21, in main
ticks_data = grouped_data['Sell'].resample('24H').ohlc() File "/usr/lib/python2.7/dist-packages/pandas/core/generic.py", line 2360, in getattr (type(self).name, name)) AttributeError: 'Series' object has no attribute 'ohlc'
I have solved this changing the line:
ticks_data = grouped_data['Sell'].resample('24H').groupby(['Sell']).ohlc()
with:
tick2_data = grouped_data.resample('24H', how={'Sell': 'ohlc'}) ticks_data = tick2_data['Sell']