Skip to content
This repository was archived by the owner on Aug 17, 2024. It is now read-only.
This repository was archived by the owner on Aug 17, 2024. It is now read-only.

[FEATURE] Allow 1 or many (not necessarily all) columns to be renamed at once. #90

Open
@anusha5695

Description

@anusha5695

Is your feature request related to a problem? Please describe.
When we try to rename 30 columns out of a 1000 column CSV file, we are left with 2 options:

  1. we'll have to call df.rename 30 times, one for each column
  2. We'll have to loop through the 1000 columns and construct another array of columns renamed and call df.renameAll with the new array

This might also not be readable when i want to know what are the exact columns that are being renamed.

Describe the solution you'd like
There can be a method say df.renameMany taking params in the format:

{ "src_column_1":"renamed_1",
"src_column_2":"renamed_2",
"src_column_3":"renamed_3", ...
}

Describe alternatives you've considered
We are currently calling df.rename multiple times for each column

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions