We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e722ce1 commit 194f7d2Copy full SHA for 194f7d2
pandas/core/frame.py
@@ -1986,7 +1986,11 @@ def to_markdown(self, **kwargs):
1986
| 1 | 2 | 4 |
1987
"""
1988
tabulate = import_optional_dependency("tabulate")
1989
- return tabulate.tabulate(self, headers="keys", tablefmt="pipe", **kwargs)
+ if "headers" not in kwargs:
1990
+ kwargs["headers"] = "keys"
1991
+ if "tablefmt" not in kwargs:
1992
+ kwargs["tablefmt"] = "pipe"
1993
+ return tabulate.tabulate(self, **kwargs)
1994
1995
@deprecate_kwarg(old_arg_name="fname", new_arg_name="path")
1996
def to_parquet(
0 commit comments