Skip to content

CLN: rename get_block_values, simplify #32521

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 1 commit into from
Mar 11, 2020

Conversation

jbrockmendel
Copy link
Member

cc @WillAyd name more explicit, implementation more transparent.

"""
return self.get_values(dtype=dtype)
# TODO(2DEA): reshape will be unnecessary with 2D EAs
Copy link
Member

Choose a reason for hiding this comment

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

Putting such comments in several places won't make this happen ... (if you want this, you will need to lead a discussion about it)

Copy link
Member Author

Choose a reason for hiding this comment

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

experience shows that discussion turns on amounts of complexity; marking these will allow us to pseudo-quantify that

Copy link
Contributor

Choose a reason for hiding this comment

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

agree with both of you! these do have good placeholders, but am skeptical of 2D EA.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Minor comment, +1 in general on the rename

"""
return self.get_values(dtype=dtype)
Copy link
Member

Choose a reason for hiding this comment

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

Why not keep it as get_values() (but remove the dtype, since that is not used) ? The get_values already handles the reshape, avoiding the need to keep track of it here as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

Because get_values is next up on the chopping block

"""
return self.get_values(dtype=dtype)
# TODO(2DEA): reshape will be unnecessary with 2D EAs
Copy link
Contributor

Choose a reason for hiding this comment

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

agree with both of you! these do have good placeholders, but am skeptical of 2D EA.

@jreback jreback added Clean Internals Related to non-user accessible pandas implementation IO JSON read_json, to_json, json_normalize labels Mar 11, 2020
@jreback jreback added this to the 1.1 milestone Mar 11, 2020
@jreback jreback merged commit 9a31bdd into pandas-dev:master Mar 11, 2020
@jbrockmendel jbrockmendel deleted the get_block_values branch March 11, 2020 02:27
SeeminSyed pushed a commit to CSCD01-team01/pandas that referenced this pull request Mar 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Internals Related to non-user accessible pandas implementation IO JSON read_json, to_json, json_normalize
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants