Skip to content

Add index param to to_dict like in to_json. #46398

Closed
@pavelkomarov

Description

@pavelkomarov

df.to_json(orient='split', index=False) is really nice. df.to_dict(orient='split') basically does the same thing, but I get a dictionary back instead of a string. For symmetry, I'd like to_dict to also have an index param, so I can keep from having to del dictionary['index'] to make them really similar.

Metadata

Metadata

Assignees

Labels

API - ConsistencyInternal Consistency of API/BehaviorEnhancementIO DataIO issues that don't fit into a more specific label

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions