Skip to content

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

Merged
merged 11 commits into from
Dec 12, 2019

Conversation

jbrockmendel
Copy link
Member

No description provided.

@jbrockmendel jbrockmendel added the IO HDF5 read_hdf, HDFStore label Dec 10, 2019
@jreback jreback added this to the 1.0 milestone Dec 11, 2019
Copy link
Contributor

@jreback jreback left a 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
Copy link
Contributor

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)

Copy link
Member Author

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

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]]
Copy link
Contributor

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

Copy link
Member Author

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):
Copy link
Contributor

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

Copy link
Member Author

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

@jbrockmendel
Copy link
Member Author

rebased+green

@jbrockmendel
Copy link
Member Author

Not sure whats going on here

/home/vsts/work/1/s/pandas/core/indexes/multi.py:docstring of pandas.MultiIndex.rst:91: WARNING: autosummary: stub file not found 'pandas.MultiIndex.get_locs'. Check your autosummary_generate setting.

@jreback jreback merged commit cc5b417 into pandas-dev:master Dec 12, 2019
@jreback
Copy link
Contributor

jreback commented Dec 12, 2019

thanks

@jbrockmendel jbrockmendel deleted the ref-pytables-read_axes branch December 12, 2019 23:35
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO HDF5 read_hdf, HDFStore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants