From de93911e4e51572f7cdc758b7845e15d97dca375 Mon Sep 17 00:00:00 2001 From: HowToSD Date: Fri, 21 Feb 2025 12:24:58 -0800 Subject: [PATCH] Fixed the display name of Pandas Loc Row MultiIndex DataFrame node to remove a space between Multi and Index. --- __init__.py | 2 +- dev/scripts/init_py_generate.py | 1 + docs/reference/node_reference.md | 2 +- docs/reference/pandas_loc_row_multiindex_dataframe.md | 2 +- modules/pandas_wrapper/pandas_loc_row_multiindex_dataframe.py | 1 + 5 files changed, 5 insertions(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index 42d3ecb..97f1ba4 100644 --- a/__init__.py +++ b/__init__.py @@ -259,7 +259,7 @@ NODE_DISPLAY_NAME_MAPPINGS: Dict[str, str] = { "PandasLoadHTML": "Pandas Load HTML", "PandasLoadJSON": "Pandas Load JSON", "PandasLocCellStr": "Pandas Loc Cell Str", - "PandasLocRowMultiIndexDataFrame": "Pandas Loc Row Multi Index DataFrame", + "PandasLocRowMultiIndexDataFrame": "Pandas Loc Row MultiIndex DataFrame", "PandasLocRowSeries": "Pandas Loc Row Series", "PandasLog": "Pandas Log", "PandasMax": "Pandas Max", diff --git a/dev/scripts/init_py_generate.py b/dev/scripts/init_py_generate.py index c7b09f7..fa4d26d 100644 --- a/dev/scripts/init_py_generate.py +++ b/dev/scripts/init_py_generate.py @@ -78,6 +78,7 @@ def format_display_name(class_name): ("MP L", "MPL"), (" N A", " NA"), ("Data Frame", "DataFrame"), + ("Multi Index", "MultiIndex"), ("MPL Bar", "MPL Bar Chart"), ("MPL Line", "MPL Line Plot"), ("MPL Scatter", "MPL Scatter Plot") diff --git a/docs/reference/node_reference.md b/docs/reference/node_reference.md index b0de593..2f5738c 100644 --- a/docs/reference/node_reference.md +++ b/docs/reference/node_reference.md @@ -49,7 +49,7 @@ | [Pandas Iloc Row Series](pandas_iloc_row_series.md) | Selects a row from a pandas DataFrame and returning it as a Series. | | [Pandas Iloc Rows Data Frame](pandas_iloc_rows_dataframe.md) | Selects rows from a pandas DataFrame and returning it as a DataFrame. | | [Pandas Loc Cell Str](pandas_loc_cell_str.md) | Selects a cell from a pandas DataFrame and output as a string. | -| [Pandas Loc Row Multi Index Data Frame](pandas_loc_row_multiindex_dataframe.md) | Selects a row from a pandas DataFrame with MultiIndex and output as a DataFrame. | +| [Pandas Loc Row MultiIndex DataFrame](pandas_loc_row_multiindex_dataframe.md) | Selects a row from a pandas DataFrame with MultiIndex and output as a DataFrame. | | [Pandas Loc Row Series](pandas_loc_row_series.md) | Selects a row from a pandas DataFrame and output as a Series. | | [Pandas Select Columns](pandas_select_columns.md) | Selects specific columns from a pandas DataFrame. | | [Pandas Select Rows](pandas_select_rows.md) | Selects specific rows from a pandas DataFrame based on a condition. | diff --git a/docs/reference/pandas_loc_row_multiindex_dataframe.md b/docs/reference/pandas_loc_row_multiindex_dataframe.md index c25fe49..d853ab3 100644 --- a/docs/reference/pandas_loc_row_multiindex_dataframe.md +++ b/docs/reference/pandas_loc_row_multiindex_dataframe.md @@ -1,4 +1,4 @@ -# Pandas Loc Row Multi Index Data Frame +# Pandas Loc Row MultiIndex DataFrame Selects a row from a pandas DataFrame with MultiIndex and output as a DataFrame. Specify comma-separated MultiIndex labels (row index) and the data type for the MultiIndex to select a row. diff --git a/modules/pandas_wrapper/pandas_loc_row_multiindex_dataframe.py b/modules/pandas_wrapper/pandas_loc_row_multiindex_dataframe.py index 9e17fae..516e67f 100644 --- a/modules/pandas_wrapper/pandas_loc_row_multiindex_dataframe.py +++ b/modules/pandas_wrapper/pandas_loc_row_multiindex_dataframe.py @@ -3,6 +3,7 @@ import pandas as pd class PandasLocRowMultiIndexDataFrame: """ + Pandas Loc Row MultiIndex DataFrame: Selects a row from a pandas DataFrame with MultiIndex and output as a DataFrame. Specify comma-separated MultiIndex labels (row index) and the data type for the MultiIndex to select a row.