question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

implement pd.DataFrame.rename function

See original GitHub issue
df.rename(columns = dict(zip(column_names, [prefix + name for name in column_names])), inplace=True)

PandasNotImplementedError: The method `pd.DataFrame.rename()` is not implemented yet.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ueshincommented, Sep 25, 2019

FYI: @WeichenXu123 is working on this at #806.

0reactions
RainFungcommented, Nov 29, 2019

Any update on this issue?

It’s already implemented in lastest version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pandas.DataFrame.rename — pandas 1.5.2 documentation
Dict-like or function transformations to apply to that axis' values. Use either mapper and axis to specify the axis to target with mapper...
Read more >
Python | Pandas Dataframe.rename() - GeeksforGeeks
Pandas rename () method is used to rename any index, column or row. Renaming of column can also be done by dataframe.columns =...
Read more >
Pandas DataFrame: rename() function - w3resource
The rename() function is used to alter axes labels. ... Function / dict values must be unique (1-to-1). Labels not contained in a...
Read more >
pandas: Rename column/index names (labels) of DataFrame
You can use the rename() method of pandas.DataFrame to change column/index name individually. ... Specify the original name and the new name in ......
Read more >
Pandas DataFrame rename() Method - W3Schools
The rename() method allows you to change the row indexes, and the columns labels. Syntax. dataframe.rename(mapper, index, columns, axis, copy, inplace, level, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found