Skip to content

API: remove .set_tooltips_class incorpate to .set_tooltips #40284

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 4 commits into from
Mar 8, 2021

Conversation

attack68
Copy link
Contributor

@attack68 attack68 commented Mar 7, 2021

.set_tooltips and .set_tooltips_class are introduced to 1.3.0.

Just realised it seems a bit pointless to have two api functions:

  • remove .set_tooltips_class() and ._init_tooltips()
  • include the css_name and props arguments in .set_tooltips for same functionality.
  • no api break since these functions have not yet been released
  • make argument names more consistent with other Styler methods.

"""
Checks parameters compatible with tooltips and creates instance if necessary
"""
if not self.cell_ids:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this code is moved inside the set_tooltips method

@jreback jreback added Clean Styler conditional formatting using DataFrame.style labels Mar 8, 2021
@jreback jreback added this to the 1.3 milestone Mar 8, 2021
@jreback jreback merged commit 28a839b into pandas-dev:master Mar 8, 2021
@jreback
Copy link
Contributor

jreback commented Mar 8, 2021

thanks @attack68 very nice

@attack68 attack68 deleted the tooltips_api branch March 8, 2021 19:51
jbrockmendel pushed a commit to jbrockmendel/pandas that referenced this pull request Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Styler conditional formatting using DataFrame.style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants