Skip to content

DOC: Strange examples order in DataFrame.to_csv #56256

Closed
@JB-AM

Description

@JB-AM

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.to_csv.html

Documentation problem

Not really a blocking issue, but when reading the doc, I was rather surprised that the first example, instead of simply exporting a df to a csv file, implicated some rather more complicated zip encryption.
A first simple/dummy example would have helped me there, before getting to finer arcanes.

Suggested fix for documentation

Insert a first simple example of exporting a dataframe to a simple csv file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions