-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: The argument of pandas.DataFrame.to_markdown is unfriendly #34568
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
Comments
I'd caution against adding too many keyword arguments. The function could be expanded in the future to accept an So we should only add explicit keywords for names that are standard across the rest of pandas IO methods. |
Thanks! I think adding a link of tabulate package to this document is enough for the user. |
Thanks, both of those sound like great ideas.
…On Thu, Jun 4, 2020 at 7:49 AM Atsushi Nukariya ***@***.***> wrote:
@MarcoGorelli <https://github.com/MarcoGorelli> @TomAugspurger
<https://github.com/TomAugspurger>
Thanks!
I agree not to introduce many keywords. But I didn't intend to add more
keyword arguments in this issue.
This issue mentions the unclear documentation of **kwargs.
I think adding a link of tabulate package
<https://pypi.org/project/tabulate/> to this document is enough for the
user.
Or, it may be good to add an example which uses tabulate argument.
The users can check what options they need to pass to **kwargs.
What do you think of this idea?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#34568 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKAOIVM4NVNBEZCCLKEPNDRU6J33ANCNFSM4NSMRR5Q>
.
|
I noticed |
Location of the documentation
https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.to_markdown.html
Documentation problem
The document of
pandas.DataFrame.to_markdown
is unfriendly because many options are shown as**kwargs
.I think these arguments should be documented explicitly like a
to_csv
.https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.to_csv.html
Suggested fix for documentation
All arguments supported by
to_markdown
should be shown at document.If don't mind, I would like to tackle this improvement.
The text was updated successfully, but these errors were encountered: