Skip to content

CLN: remove redundant code related to Styler #39884

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 3 commits into from
Feb 19, 2021

Conversation

attack68
Copy link
Contributor

non_reducing_slice is performed within the apply so no need to execute twice.

maybe_numeric_slice is a convoluted wrapper for selecting numeric columns so removed.

@attack68 attack68 changed the title CLN: remove redundant code CLN: remove redundant code related to Styler Feb 18, 2021
@jbrockmendel
Copy link
Member

Nice. IIRC non_reducing_slice is only used in this file, would it make sense to move it there?

@attack68
Copy link
Contributor Author

Nice. IIRC non_reducing_slice is only used in this file, would it make sense to move it there?

Yes I observed the same but was bigger change. updated now.

@jreback jreback added Refactor Internal refactoring of code Styler conditional formatting using DataFrame.style labels Feb 19, 2021
@jreback jreback added this to the 1.3 milestone Feb 19, 2021
@jreback jreback merged commit 68fe64b into pandas-dev:master Feb 19, 2021
@jreback
Copy link
Contributor

jreback commented Feb 19, 2021

thanks @attack68

would you mind doing a PR splitting up test_style.py (you can create a sub-dir and put in several tests modules) as its getting kind of long.

@attack68 attack68 deleted the builtins_bar branch February 19, 2021 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Internal refactoring of code Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants