-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REF: dont alter state in pytables read_axes #30184
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
REF: dont alter state in pytables read_axes #30184
Conversation
…f-pytables-read_axes
…f-pytables-read_axes
…f-pytables-read_axes
…f-pytables-read_axes
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.
would rebase
|
||
Returns | ||
------- | ||
index : listlike to become an Index |
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.
ideally type at some point (e.g. return value)
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.
yah, ATM we're not consistent about what this is (e.g. sometimes list) so id like to to get this more specific
pandas/io/pytables.py
Outdated
index = self.index_axes[0].values | ||
|
||
axes = list(self.axes) | ||
inds = [i for i in range(len(axes)) if axes[i] is self.index_axes[0]] |
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.
can you just inline axes
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.
sure
frames = [] | ||
for a in self.values_axes: | ||
for i, a in enumerate(self.axes): |
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.
confusing y ou are using self.axes here again
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.
we need i
to do the lookup result[i]
and a
to do the check just below. there may be a nicer way to do this if/when values_axes
ceases to be stateful
…f-pytables-read_axes
rebased+green |
…f-pytables-read_axes
Not sure whats going on here
|
thanks |
No description provided.