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:
@@ -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(
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user