Skip to content

ENH: pprint index/columns? #6295

Closed
@jseabold

Description

@jseabold

I haven't looked at the source yet, but do columns ever get pretty printed? It looks like indices do if it's a DatetimeIndex, but not otherwise.

I often find myself doing

df.columns.tolist()

otherwise it's not really readable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIndexingRelated to indexing on series/frames, not to indexes themselvesOutput-Formatting__repr__ of pandas objects, to_string

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions