29 lines
521 B
Markdown
29 lines
521 B
Markdown
# Pandas Rename Advanced
|
|
Renames one or more indices (row labels) or column labels to new labels.
|
|
|
|
Specify the replacement in a Python dictionary format:
|
|
```
|
|
{
|
|
"old_foo": "new_bar",
|
|
0: 5
|
|
}
|
|
```
|
|
A string label has to be double-quoted.
|
|
|
|
## Input
|
|
| Name | Data type |
|
|
|---|---|
|
|
| dataframe | DataFrame |
|
|
| axis | |
|
|
| replacement_pairs | String |
|
|
|
|
## Output
|
|
| Data type |
|
|
|---|
|
|
| DataFrame |
|
|
|
|
<HR>
|
|
Category: Transformation
|
|
|
|
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
|