{"action":"created","issue":{"url":"https://api.github.com/repos/jonromero/forex_algotrading/issues/1","repository_url":"https://api.github.com/repos/jonromero/forex_algotrading","labels_url":"https://api.github.com/repos/jonromero/forex_algotrading/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jonromero/forex_algotrading/issues/1/comments","events_url":"https://api.github.com/repos/jonromero/forex_algotrading/issues/1/events","html_url":"https://github.com/jonromero/forex_algotrading/issues/1","id":157007034,"number":1,"title":"Problem with ml script","user":{"login":"lusum","id":541595,"avatar_url":"https://avatars.githubusercontent.com/u/541595?v=3","gravatar_id":"","url":"https://api.github.com/users/lusum","html_url":"https://github.com/lusum","followers_url":"https://api.github.com/users/lusum/followers","following_url":"https://api.github.com/users/lusum/following{/other_user}","gists_url":"https://api.github.com/users/lusum/gists{/gist_id}","starred_url":"https://api.github.com/users/lusum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lusum/subscriptions","organizations_url":"https://api.github.com/users/lusum/orgs","repos_url":"https://api.github.com/users/lusum/repos","events_url":"https://api.github.com/users/lusum/events{/privacy}","received_events_url":"https://api.github.com/users/lusum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-26T15:10:02Z","updated_at":"2016-05-26T22:03:16Z","closed_at":null,"body":"I had a couple problem with your ml.py come\r\n\r\nThe 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\r\n\r\nThe second one is a bug:\r\n\r\nTraceback (most recent call last):                                                                                                                                                                                                           \r\n  File \"ml.py\", line 56, in <module>                                                                                                                                                                                                         \r\n    main(sys.argv[1])                                                                                                                                                                                                                        \r\n  File \"ml.py\", line 21, in main                                                                                                                                                                                                             \r\n    ticks_data = grouped_data['Sell'].resample('24H').ohlc()\r\n  File \"/usr/lib/python2.7/dist-packages/pandas/core/generic.py\", line 2360, in __getattr__\r\n    (type(self).__name__, name))\r\nAttributeError: 'Series' object has no attribute 'ohlc'\r\n\r\nI have solved this changing the line:\r\n\r\nticks_data = grouped_data['Sell'].resample('24H').groupby(['Sell']).ohlc()\r\n\r\nwith:\r\n\r\ntick2_data = grouped_data.resample('24H', how={'Sell': 'ohlc'})\r\nticks_data = tick2_data['Sell']\r\n"},"comment":{"url":"https://api.github.com/repos/jonromero/forex_algotrading/issues/comments/222008240","html_url":"https://github.com/jonromero/forex_algotrading/issues/1#issuecomment-222008240","issue_url":"https://api.github.com/repos/jonromero/forex_algotrading/issues/1","id":222008240,"user":{"login":"lusum","id":541595,"avatar_url":"https://avatars.githubusercontent.com/u/541595?v=3","gravatar_id":"","url":"https://api.github.com/users/lusum","html_url":"https://github.com/lusum","followers_url":"https://api.github.com/users/lusum/followers","following_url":"https://api.github.com/users/lusum/following{/other_user}","gists_url":"https://api.github.com/users/lusum/gists{/gist_id}","starred_url":"https://api.github.com/users/lusum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lusum/subscriptions","organizations_url":"https://api.github.com/users/lusum/orgs","repos_url":"https://api.github.com/users/lusum/repos","events_url":"https://api.github.com/users/lusum/events{/privacy}","received_events_url":"https://api.github.com/users/lusum/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T22:03:16Z","updated_at":"2016-05-26T22:03:16Z","body":"Ok, i will test a cleaner code and i will submit"}}
{"actor":{"display_login":"lusum"}}