Updated docstring for Pandas Rename node to clarify the node parameters.

This commit is contained in:
HowToSD
2025-02-20 00:20:50 -08:00
parent 31049725cf
commit a512b5c7fe
2 changed files with 12 additions and 3 deletions
+6 -2
View File
@@ -1,13 +1,17 @@
# Pandas Rename
Renames an index (row label) or a column label.
Note below node parameter description is inaccurate due to a reference generator's bug:
* axis takes columns or index, not DataFrame.
* Both current_label and new_label take a String.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| axis | DataFrame |
| axis | |
| current_label | String |
| new_label | |
| new_label | String |
## Output
| Data type |
+6 -1
View File
@@ -6,9 +6,14 @@ class PandasRename:
"""
Renames an index (row label) or a column label.
Note below node parameter description is inaccurate due to a reference generator's bug:
* axis takes columns or index, not DataFrame.
* Both current_label and new_label take a String.
category: Transformation
"""
# TODO: Fix parameter description in node reference doc.
@classmethod
def INPUT_TYPES(cls) -> Dict[str, Any]:
"""