-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
REF: use BlockManager.to_native_types in formatting code #36417
Conversation
@@ -631,6 +631,13 @@ def replace_list( | |||
bm._consolidate_inplace() | |||
return bm | |||
|
|||
def to_native_types(self, **kwargs) -> "BlockManager": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more informative name?
There was a problem hiding this comment.
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..
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
LGTM |
@@ -631,6 +631,13 @@ def replace_list( | |||
bm._consolidate_inplace() | |||
return bm | |||
|
|||
def to_native_types(self, **kwargs) -> "BlockManager": |
There was a problem hiding this comment.
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
Small follow-up on #36150