Skip to content

PERF: Styler 2 #43287

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
Aug 30, 2021
Merged

PERF: Styler 2 #43287

merged 3 commits into from
Aug 30, 2021

Conversation

attack68
Copy link
Contributor

extends the idea pushed by @jbrockmendel in #43285

>>> df = pd.DataFrame(np.random.randn(10000, 1))
>>> % timeit df.style.applymap_index(lambda v: "color: blue;")._compute()
29.7 ms ± 396 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # Master
24.4 ms ± 347 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # PR

@jbrockmendel jbrockmendel mentioned this pull request Aug 29, 2021
@simonjayhawkins simonjayhawkins added Performance Memory or execution speed performance Styler conditional formatting using DataFrame.style labels Aug 30, 2021
Copy link
Member

@jbrockmendel jbrockmendel left a comment

Choose a reason for hiding this comment

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

LGTM; posted timings are likely out of date

@jreback jreback added this to the 1.4 milestone Aug 30, 2021
@jreback jreback merged commit 49eeed4 into pandas-dev:master Aug 30, 2021
@jreback
Copy link
Contributor

jreback commented Aug 30, 2021

thanks @attack68

@attack68 attack68 deleted the perf_styler_apply_index branch August 31, 2021 04:48
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Memory or execution speed performance Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants