-
-
Notifications
You must be signed in to change notification settings - Fork 20
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 DataFrame.applymap has been deprecated
warning
#55
Comments
Thanks for mentioning. I don't want to force users to the lastest version of pandas though.. |
Related #54 |
Understandable, but maybe you can add a version check? if pd.__version__.startswith("2"):
df = df.map(lambda s: replace_unescaped_pipes(s) if isinstance(s, str) else s)
else:
df = df.applymap(lambda s: replace_unescaped_pipes(s) if isinstance(s, str) else s) |
Yeah that's a good solution. Normally I wouldn't worry about these kinds of warnings, but some people run mkdocs using |
Just released v2.0.2 with this change! Thanks for pushing this :) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is caused by this line in
mkdocs_table_reader_plugin/markdown.py
.The text was updated successfully, but these errors were encountered: