-
Notifications
You must be signed in to change notification settings - Fork 679
ENH: TrueFX tick datareader #152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
||
df = pd.DataFrame(data) | ||
|
||
#df = df[:100] # uncomment this - just for test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uncomment this to have a short processing time.
Processing is so long that it leads to Travis CI build error
|
Python 2.6 Travis build is failing. Others Python versions seems to be ok. Any idea why it's failing with 2.6 ? |
df = pd.read_csv(zfile, names=['Symbol', 'Date', 'Bid', 'Ask']) | ||
|
||
df['Date'] = pd.to_datetime(df['Date'], format='%Y%m%d %H:%M:%S.%f') | ||
df = df.set_index('Date') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution: Date columns have non unique values
df = df.set_index('Date', verify_integrity=True)
should raises error
we might make Date unique (adding a quantum of 1 microsecond or 1 nanosecond)
Direct download is not available anymore |
Try to fix #153