We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7267d81 commit 90a4e38Copy full SHA for 90a4e38
1 file changed
mkdocs_table_reader_plugin/markdown.py
@@ -28,7 +28,7 @@ def convert_to_md_table(df: pd.DataFrame, markdown_kwargs: Dict) -> str:
28
29
# Avoid deprecated applymap warning on pandas>=2.0
30
# See https://github.com/timvink/mkdocs-table-reader-plugin/issues/55
31
- if pd.__version__.startswith("2"):
+ if pd.__version__ >= "2.1.0":
32
df = df.map(lambda s: replace_unescaped_pipes(s) if isinstance(s, str) else s)
33
else:
34
df = df.applymap(lambda s: replace_unescaped_pipes(s) if isinstance(s, str) else s)
0 commit comments