Skip to content
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

Fix a few deprecation warnings #571

Merged
merged 5 commits into from
Nov 22, 2022

Conversation

DanielGoldfarb
Copy link
Collaborator

  1. MatplotlibDeprecationWarning: The seaborn styles shipped by Matplotlib are deprecated since 3.6, as they no longer correspond to the styles shipped by seaborn. However, they will remain available as 'seaborn-v0_8-<style>'. Alternatively, directly use the seaborn API instead.

    • try style 'seaborn-v0_8-darkgrid', if exception then use old 'seaborn-darkgrid'
  2. FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.

    • use concat() instead of append()
  3. FutureWarning: iteritems is deprecated and will be removed in a future version. Use .items instead. for date,value in percentB.iteritems():

    • use items() instead of iteritems()
  4. <string> DeprecationWarning: invalid escape sequence \

    • use raw string for docstring that contains an un-escaped \

@DanielGoldfarb DanielGoldfarb merged commit ca994ab into matplotlib:master Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant