Skip to content

REF: finish setting pytables IndexCol attrs in constructor #30161

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
Dec 12, 2019

Conversation

jbrockmendel
Copy link
Member

we're not all the way done, but this is a big milestone

@jbrockmendel jbrockmendel added the IO HDF5 read_hdf, HDFStore label Dec 9, 2019
@@ -2490,8 +2475,7 @@ def get_atom_timedelta64(cls, shape):
class GenericDataIndexableCol(DataIndexableCol):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we just blow this class away altogether now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

worth a shot

@jreback jreback added this to the 1.0 milestone Dec 10, 2019
md = self.read_metadata(c)
meta = "category" if md is not None else None
# TODO: figure out why these two versions of `meta` dont always match.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is going on here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So ever place where we set self.meta it is equivalent to meta = "category" if md is not None else none, but in this one place where we read it from the file, there is one test case where it doesnt match, and i dont know why.

if/when that is resolved, meta can be made a property

@jreback
Copy link
Contributor

jreback commented Dec 11, 2019

can you rebase

@jbrockmendel
Copy link
Member Author

rebased+green

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

jreback commented Dec 12, 2019

k thanks

@jbrockmendel jbrockmendel deleted the ref-pytables-get_attr branch December 12, 2019 15:43
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.

3 participants