Skip to content

DOC: pd.get_dummies does not correctly describe return value when "columns" is passed #48466

Closed
@toobaz

Description

@toobaz

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.get_dummies.html

Documentation problem

The get_dummies docs do not mention that

  • the name of the output dummies depends on whether a Series or DataFrame is passed as input
  • non-encoded columns are prepended to the result

Suggested fix for documentation

I am pushing a PR in few minutes

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