Files
HowToSD-ComfyUI-Data-Analysis/docs/reference/node_reference.md
T

11 KiB

Node Reference

Aggregation

Node Description
Pandas Group By Computes aggregate values for groups in a DataFrame.

Arithmetic method

Node Description
Pandas Add Adds two pandas DataFrames.
Pandas Add Scalar Float Adds a floating-point number to a Pandas DataFrame.
Pandas Add Scalar Int Adds an integer to a Pandas DataFrame.
Pandas Add Series Adds a Pandas Series to a pandas DataFrames.
Pandas Div Divides a Pandas DataFrame by another DataFrame.
Pandas Div Scalar Float Divides a Pandas DataFrame by a floating-point number.
Pandas Div Scalar Int Divides a Pandas DataFrame by an integer.
Pandas Div Series Divides a Pandas DataFrame by a Pandas Series.
Pandas Mul Multiplies two pandas DataFrames.
Pandas Mul Scalar Float Multiplies a Pandas DataFrame by a floating-point number.
Pandas Mul Scalar Int Multiplies a Pandas DataFrame by a floating-point number.
Pandas Mul Series Multiplies a Pandas DataFrame by a Pandas Series.
Pandas Pow Exponentiates two pandas DataFrames.
Pandas Pow Scalar Float Raises a Pandas DataFrame to the power of a floating-point number.
Pandas Pow Scalar Int Raises a Pandas DataFrame to the power of an integer.
Pandas Pow Series Raises a Pandas DataFrame to the power of a Pandas Series.
Pandas Sub Subtracts a Pandas DataFrame from another DataFrame.
Pandas Sub Scalar Float Subtracts a floating-point number from a Pandas DataFrame.
Pandas Sub Scalar Int Subtracts an integer from a Pandas DataFrame.
Pandas Sub Series Subtracts a Pandas Series from a Pandas DataFrame.

Cumulative calculations

Node Description
Pandas Cummax Computes the cummax (cumulative max) of the DataFrame.
Pandas Cummin Computes the cummin (cumulative minimum) of the DataFrame.
Pandas Cumprod Computes the cumprod (cumulative product) of the DataFrame.
Pandas Cumsum Computes the cumsum (cumulative sum) of the DataFrame.

Data cleansing

Node Description
Pandas Drop Duplicates Drops duplicate rows from a Pandas DataFrame.
Pandas Drop NA Drops missing values from a pandas DataFrame.
Pandas Fill NA Scalar Float Replaces missing values in a Pandas DataFrame with a floating-point number.
Pandas Fill NA Scalar Int Replaces missing values in a Pandas DataFrame with an integer.
Pandas Is NA Checks a pandas DataFrame for missing values.
Pandas Replace Replaces part or all of a string in each DataFrame cell with a specified string using a wildcard for matching. If you want to remove some characters, then leave the replace_string field blank.

Data subset selection

Node Description
Pandas Head Retrieves the first few rows of a pandas DataFrame.
Pandas Iloc Row Series Selects a row from a pandas DataFrame and returning it as a Series.
Pandas Iloc Rows Data Frame Selects rows from a pandas DataFrame and returning it as a DataFrame.
Pandas Loc Cell Str Selects a cell from a pandas DataFrame and output as a string.
Pandas Loc Row MultiIndex DataFrame Selects a row or rows from a pandas DataFrame with MultiIndex and output as a DataFrame.
Pandas Loc Row Series Selects a row from a pandas DataFrame and output as a Series.
Pandas Select Columns Selects specific columns from a pandas DataFrame.
Pandas Select Rows Selects specific rows from a pandas DataFrame based on a condition. This node internally calls DataFrame.query().
Pandas Xs Selects a subset of a Pandas DataFrame using specified index labels or positions.

Data type conversion

Node Description
Pandas As Float Converts all cells in a pandas DataFrame to float type.
Pandas As Int Converts all cells in a pandas DataFrame to integer type.
Pandas As String Converts all cells in a pandas DataFrame to string type.

DataFrame information

Node Description
Pandas Columns Retrieves the column labels of a pandas DataFrame.
Pandas Index Retrieves the row labels (index) of a pandas DataFrame.

Date and time processing

Node Description
Pandas Strftime Converts one or more datetime columns in a DataFrame to string columns.
Pandas To Datetime Converts one or more string columns in a DataFrame to datetime columns.

Display data

Node Description
CDA Show Float Displays a floating-point number as text.
CDA Show Int Displays a Pandas Int as text.
Pandas Index To String Converts a pandas Index to a string representation.
Pandas Series To String Converts a pandas Series to a string representation.
Pandas Show Data Frame Displays a Pandas DataFrame as text.
Pandas Show Index Displays a Pandas Index as text.
Pandas Show Series Displays a Pandas Series as text.
Pandas Show Text Displays a string.
Pandas To String Converts a pandas DataFrame to a string representation.

IO

Node Description
CDA Float Create Creates a Python float using a value entered in the text field.
CDA Int Create Creates a Python int using a value entered in the text field.
CDA JSON Create Creates a serialized JSON object using values entered in the text field.
CDA String Create Creates a Python String using a value entered in a single-line text field.
CDA Text Create Creates a Python String using a value entered in a multi-line text field.
Pandas Create Creates a pandas DataFrame using values entered in the text field.
Pandas Create With Index Creates a pandas DataFrame using values entered in the text field. Input data is assumed to have an index.
Pandas Load CSV Loads CSV files into a pandas DataFrame.
Pandas Load CSV With Encoding Loads CSV files into a pandas DataFrame.
Pandas Load CSV With Index Loads CSV files into a pandas DataFrame.
Pandas Load HTML Scans an HTML file or webpage for tables and returns the number of DataFrames
Pandas Load JSON Loads JSON files into a pandas DataFrame.
Pandas Save CSV Saves a PandasDataFrame to a CSV file.
Pandas Save JSON Saves a PandasDataFrame to a JSON file.

Math

Node Description
Pandas Cos Apply the cosine function to a pandas DataFrame and converting non-numeric values to NaN.
Pandas Exp Apply the exponential function to a pandas DataFrame and converting non-numeric values to NaN.
Pandas Log Applying the natural logarithm function to a pandas DataFrame and converting non-numeric values to NaN.
Pandas Sin Applies the sine function to a pandas DataFrame and converting non-numeric values to NaN.
Pandas Tan Applies the tangent function to a pandas DataFrame and converting non-numeric values to NaN.

Plot

Node Description
MPL Bar Chart Generates a bar chart from a Pandas DataFrame.
MPL Line Plot Generates a line plot from a pandas DataFrame.
MPL Scatter Plot Generates a scatter plot from a pandas DataFrame.

Summary statistics

Node Description
Pandas Corr Computes the correlation of the DataFrame. You can select from the Pearson, Kendall or Spearman methods.
Pandas Count Computes the count of a pandas DataFrame.
Pandas Cov Computes the covariance of the DataFrame.
Pandas Kurtosis Computes the unbiased kurtosis of the DataFrame.
Pandas Max Computes the max of a pandas DataFrame.
Pandas Mean Computes the mean of a pandas DataFrame.
Pandas Median Computes the median of a pandas DataFrame.
Pandas Min Computes the min of a pandas DataFrame.
Pandas Mode Computes the mode of a pandas DataFrame.
Pandas Skew Computes the unbiased skewness of the DataFrame.
Pandas Std Computes the standard deviation of a pandas DataFrame.
Pandas Sum Computes the sum of a pandas DataFrame.
Pandas Summary Analyzes and summarizes a pandas DataFrame.
Pandas Var Computes the variance of a pandas DataFrame.

Transformation

Node Description
Pandas Horizontal Concat Horizontally concatenates two pandas DataFrames.
Pandas Horizontal Split Horizontally splits a Pandas DataFrame into two pandas DataFrames.
Pandas Join Merges two pandas DataFrames based on a common column.
Pandas Rename Renames an index (row label) or a column label.
Pandas Series To Data Frame Converts a Pandas Series to a DataFrame.
Pandas Set Index Create index (row label) from existing column or columns.
Pandas Sort Sorts a pandas DataFrame by a specified column.
Pandas Transpose Transposes a DataFrame.
Pandas Vertical Concat Vertically concatenates two pandas DataFrames.
Pandas Vertical Split Vertically splits a Pandas DataFrame into two pandas DataFrames.