Skip to content

DOC: Modified docstring of DataFrame.to_dict() to make the usage of orient='records' more clear #56743

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

Merged
merged 2 commits into from
Jan 5, 2024

Conversation

Huanghz2001
Copy link
Contributor

@Huanghz2001 Huanghz2001 commented Jan 5, 2024

Modified documentation for parameter index as is mentioned in #56483.
However, I don't think this should be the final solution to this issue. The current behavior remains counter-intuitive and will confuse users who haven't checked the doc.

closes #56483

@mroeschke mroeschke added the Docs label Jan 5, 2024
@mroeschke mroeschke added this to the 3.0 milestone Jan 5, 2024
@mroeschke mroeschke merged commit 68dbf6e into pandas-dev:main Jan 5, 2024
@mroeschke
Copy link
Member

Thanks @Huanghz2001

pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
…rient='records' more clear (pandas-dev#56743)

* 'Modified docstring of Dataframe.to_dict() to make  the usage orient='records' moreclear

* Changed by pre-commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Dataframe.to_dict(orient='records', index=True) doesn't include the index
2 participants