Added Pandas Replace to replace part or whole string in each DataFrame cell using a regular expression.

This commit is contained in:
HowToSD
2025-02-19 22:58:54 -08:00
parent eaef2d220a
commit 7597dcedfd
6 changed files with 69 additions and 1 deletions
+3
View File
@@ -52,6 +52,7 @@ from .modules.pandas_wrapper.pandas_mul import PandasMul
from .modules.pandas_wrapper.pandas_mul_series import PandasMulSeries
from .modules.pandas_wrapper.pandas_pow import PandasPow
from .modules.pandas_wrapper.pandas_pow_series import PandasPowSeries
from .modules.pandas_wrapper.pandas_replace import PandasReplace
from .modules.pandas_wrapper.pandas_save_csv import PandasSaveCSV
from .modules.pandas_wrapper.pandas_save_json import PandasSaveJSON
from .modules.pandas_wrapper.pandas_select_columns import PandasSelectColumns
@@ -126,6 +127,7 @@ NODE_CLASS_MAPPINGS: Dict[str, Type[T]] = {
"PandasMode": PandasMode,
"PandasMul": PandasMul,
"PandasMulSeries": PandasMulSeries,
"PandasReplace": PandasReplace,
"PandasPow": PandasPow,
"PandasPowSeries": PandasPowSeries,
"PandasSaveCSV": PandasSaveCSV,
@@ -207,6 +209,7 @@ NODE_DISPLAY_NAME_MAPPINGS: Dict[str, str] = {
"PandasMulSeries": "Pandas Mul Series",
"PandasPow": "Pandas Pow",
"PandasPowSeries": "Pandas Pow Series",
"PandasReplace": "Pandas Replace",
"PandasSaveCSV": "Pandas Save CSV",
"PandasSaveJSON": "Pandas Save JSON",
"PandasSelectColumns": "Pandas Select Columns",