Skip to content

DOC:  #54715

@sshourie

Description

@sshourie

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

Documentation problem

When value_name is an existing column name, a ValueError is raised. The args documentation doesn't mention this.

Suggested fix for documentation

Update the value_name documentation from:

value_name: scalar, default ‘value’
Name to use for the ‘value’ column.

to something like

value_name: scalar, default ‘value’
Name to use for the ‘value’ column. Can't be an existing column name

Metadata

Metadata

Assignees

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