Skip to content

REF: use BlockManager.to_native_types in formatting code #36417

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
Sep 17, 2020

Conversation

jorisvandenbossche
Copy link
Member

Small follow-up on #36150

@jorisvandenbossche jorisvandenbossche added this to the 1.2 milestone Sep 17, 2020
@@ -631,6 +631,13 @@ def replace_list(
bm._consolidate_inplace()
return bm

def to_native_types(self, **kwargs) -> "BlockManager":
Copy link
Member

Choose a reason for hiding this comment

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

more informative name?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's the name that the blocks also use..

Copy link
Member

Choose a reason for hiding this comment

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

It's not an informative name there either

Copy link
Member Author

Choose a reason for hiding this comment

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

Then I am tempted to say "Go for it" .. ;)

I am well aware and fully agree that the whole "native types" terminology is confusing, but it is used in quite some places (not only the Block method, but also the Index helper methods). So fully on board with changing it, but that's a bigger change than just trying to remove the internals leakage in the csv code what I am doing here.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah this can be updated / changed later

@jbrockmendel
Copy link
Member

LGTM

@@ -631,6 +631,13 @@ def replace_list(
bm._consolidate_inplace()
return bm

def to_native_types(self, **kwargs) -> "BlockManager":
Copy link
Contributor

Choose a reason for hiding this comment

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

yeah this can be updated / changed later

@jreback jreback merged commit 6e3f698 into pandas-dev:master Sep 17, 2020
@jorisvandenbossche jorisvandenbossche deleted the mgr-native-types branch September 17, 2020 18:40
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request Sep 17, 2020
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants