Skip to content

Conversation

@jbrockmendel
Copy link
Member

cc @WillAyd name more explicit, implementation more transparent.

This is used in the JSON C code.
"""
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

This is used in the JSON C code
This is used in the JSON C code.
"""
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

This is used in the JSON C code.
"""
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