Added Pandas Create from Tensor, Pandas Rename Advanced nodes. Added an option to reindex the column in Pandas Horizontal Concat node.

This commit is contained in:
HowToSD
2025-03-01 16:45:41 -08:00
parent ce52e12a5d
commit 62e4f6efb8
23 changed files with 526 additions and 9 deletions
+3
View File
@@ -4,6 +4,7 @@ from io import StringIO
import pandas as pd
from .common import common_input_types
from .util import plot_post_steps
from ..pandas_wrapper.utils import column_label_string_to_target_type
class MPLBar:
"""
@@ -56,6 +57,8 @@ class MPLBar:
# Create the plot
fig, ax = plt.subplots()
x_column_name = column_label_string_to_target_type(df, x_column_name)
y_column_name = column_label_string_to_target_type(df, y_column_name)
ax.bar(df[x_column_name], df[y_column_name])
return plot_post_steps(
+3
View File
@@ -4,6 +4,7 @@ from io import StringIO
import pandas as pd
from .common import common_input_types
from .util import plot_post_steps
from ..pandas_wrapper.utils import column_label_string_to_target_type
class MPLLine:
"""
@@ -53,6 +54,8 @@ class MPLLine:
"""
df = dataframe
x_column_name = column_label_string_to_target_type(df, x_column_name)
y_column_name = column_label_string_to_target_type(df, y_column_name)
# Create the plot
fig, ax = plt.subplots()
+3
View File
@@ -2,6 +2,7 @@ from typing import Any, Dict
from matplotlib import pyplot as plt
import pandas as pd
from .util import plot_post_steps
from ..pandas_wrapper.utils import column_label_string_to_target_type
class MPLPieChart:
"""
@@ -54,6 +55,8 @@ class MPLPieChart:
"""
df = dataframe
label_column_name = column_label_string_to_target_type(df, label_column_name)
data_column_name = column_label_string_to_target_type(df, data_column_name)
# Create the plot
fig, ax = plt.subplots()
+3
View File
@@ -4,6 +4,7 @@ from io import StringIO
import pandas as pd
from .common import common_input_types
from .util import plot_post_steps
from ..pandas_wrapper.utils import column_label_string_to_target_type
class MPLScatter:
"""
@@ -53,6 +54,8 @@ class MPLScatter:
"""
df = dataframe
x_column_name = column_label_string_to_target_type(df, x_column_name)
y_column_name = column_label_string_to_target_type(df, y_column_name)
# Create the plot
fig, ax = plt.subplots()