Skip to content

Conversation

@devin-petersohn
Copy link
Contributor

What changes were proposed in this pull request?

Use list comprehension in the pandas.DataFrame method _bool_column_labels. This will modestly improve memory and performance, but also reduces code to a single line.

Why are the changes needed?

For mantainability and performance

Does this PR introduce any user-facing change?

No

How was this patch tested?

CI

Was this patch authored or co-authored using generative AI tooling?

No

Signed-off-by: Devin Petersohn <[email protected]>
Copy link
Contributor

@gaogaotiantian gaogaotiantian left a comment

Choose a reason for hiding this comment

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

This actually will be significantly faster after 3.12 - when list comprehensions are inlined.

@HyukjinKwon
Copy link
Member

Merged to master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants