Skip to content

REF: move attribute setting towards the constructor #29979

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 4 commits into from
Dec 4, 2019

Conversation

jbrockmendel
Copy link
Member

The end goal is to minimize the amount of attribute setting that is done outside of the constructor (or create_for_block which is a classmethod and ill give it a pass).

create_for_block is called in one place, and immediately after that set_atom is called on the result. set_atom does a ton of attribute setting, so the idea here is to gradually move that attribute setting up into create_for_block.

Related but kept for a separate branch, most of the affected methods have block arguments, these can all be changed to operate on block.values, which will narrow the exposure to internals.

@jbrockmendel jbrockmendel added IO HDF5 read_hdf, HDFStore Clean labels Dec 3, 2019
@jreback jreback added this to the 1.0 milestone Dec 4, 2019
@jreback jreback merged commit a6ae190 into pandas-dev:master Dec 4, 2019
@jreback
Copy link
Contributor

jreback commented Dec 4, 2019

sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean IO HDF5 read_hdf, HDFStore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants