Skip to content

ENH: Dataframe melt : the variable column should be typed as string #63027

@simonaubertbd

Description

@simonaubertbd

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

When I use a melt in my script, I always have to retype manually the "variable" column to string.

Image

Feature Description

A column name is always a string so it would make sense to cast it directly to the good dtype by default, here a string.

Alternative Solutions

The one I'm doing today : manually set the variable column to string

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementReshapingConcat, Merge/Join, Stack/Unstack, Explode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions