Skip to content

added backwards compatability for pandas term parsing so we can work wit... #7

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

Merged
merged 3 commits into from
Apr 9, 2014

Conversation

hhuuggoo
Copy link
Contributor

@hhuuggoo hhuuggoo commented Apr 7, 2014

@quasiben @spearsem

pandas 0.13 breaks old style pytables query syntax, I ripped out one of their backwards compat functions so we could use it

few changes

  • it's an instance method, I made it a non-instance method
  • for some reason "{0}".format(x) does not work for numpy datetimes, so I had to call str(x) on it first

The reason this is necessary, is that pandas fixed their backwards compatibility logic with the old query syntax in 0.14, but 0.13 is out and is broken, pandas-dev/pandas#6313

@jreback
Copy link

jreback commented Apr 8, 2014

you guys are really cogniscent of these little details! (and to think the original arbitrary format is still in existence! - when it was a 1-hour hack to create it!)

@hhuuggoo
Copy link
Contributor Author

hhuuggoo commented Apr 8, 2014

@jreback, it's just cause we have library code that uses the old syntax, also we construct queries programatically sometimes, so in that case dealing with lists of tuples is easier than doing our own string parsing.

…ate caching bugs as well. Rewrote config.py for YAML format.

@hhuuggoo can you confirm that start=start_row, stop=end_row are unnecessary inf store_select statements now?
@quasiben
Copy link
Contributor

quasiben commented Apr 8, 2014

@hhuuggoo can you review my changes and merge?

…quasiben's changes

which were necessary due to the bugs
- coerce start/stop to ints, sometimes we were passing series of length 1 int there
- quoting strings for pandas expressions
@quasiben quasiben merged commit 1d774f3 into master Apr 9, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants