Files
HowToSD-ComfyUI-Data-Analysis/docs/reference/node_reference.md
T
2025-02-25 13:18:05 -08:00

15 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.

Categorical summary

Node Description
Pandas Crosstab Creates a contingency table (crosstab, or cross-tabulation) from two or more columns in a DataFrame.
Pandas Value Counts Creates a frequency table from one or more columns in a 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 Iloc Rows Slice Data Frame Selects rows from a pandas DataFrame using a slice defined by a start and end integer position. The start position is inclusive, while the end position is exclusive. Returns the selected rows 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.
Pandas To Numpy Converts a pandas DataFrame to Numpy ndarray.

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 From Dict Creates a pandas DataFrame from a Python dictionary.
Pandas Create From Multiple Dict Creates a pandas DataFrame from multiple Python dictionaries.
Pandas Create From Numpy Creates a pandas DataFrame from a NumPy ndarray.
Pandas Create Series From Dict Creates a Pandas Series from a Python dictionary.
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.

Miscellaneous

Node Description
Pt Flatten Flattens a PyTorch tensor into a 1D tensor.
Pt To Rgb Tensors Splits a PyTorch tensor into R, G, and B tensors.

Numpy

Node Description
Numpy Float Create Creates a NumPy ndarray with 32-bit floating point precision
Numpy Int Create Creates a NumPy ndarray with 32-bit integer

Plot

Node Description
M P L Pie Chart :MPL Pie Chart
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.
SNS Bar Chart Generates a bar chart from a Pandas DataFrame using Seaborn.
SNS Histogram Generates a histogram from a Pandas DataFrame using Seaborn.
SNS Line Plot Generates a line plot from a pandas DataFrame using Seaborn.
SNS Scatter Plot Generates a scatter plot from a pandas DataFrame using Seaborn.

PyTorch wrapper

Node Description
Pt Float Create Creates a PyTorch tensor with 32-bit floating point precision
Pt From Image Casts an Image tensor as a PyTorch tensor.
Pt From Latent Casts a latent tensor as a PyTorch tensor.
Pt From Numpy Converts a NumPy ndarray to a PyTorch tensor while preserving its data type.
Pt Int Create Creates a PyTorch tensor with 32-bit integer
Pt Size Extracts the PyTorch Size object of a PyTorch tensor using the size() method.
Pt Size Create Creates a PyTorch Size using values entered in the text field.
Pt Size To Numpy Converts PyTorch Size object to NumPy ndarray.
Pt Size To String Converts PyTorch Size object to a Python string.
Pt To Image Casts a PyTorch tensor as an Image tensor.
Pt To Latent Casts a PyTorch tensor as a latent tensor.
Pt To Numpy Converts PyTorch tensor to NumPy ndarray.

Python wrapper

Node Description
Py Kv Float Create Creates a Python dictionary with a string key and a float value.
Py Kv Int Create Creates a Python dictionary with an string key and an integer value.
Py Kv String Create Creates a Python dictionary with a string key and a string value.

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 Melt Performs an unpivot operation (melt) on a pandas DataFrame.
Pandas Pivot Computes a pivot table from a pandas DataFrame.
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.