Added Numpy Show, Numpy Squeeze, Pandas Feature Split To Numpy, Pt Show Size nodes.

This commit is contained in:
HowToSD
2025-02-28 19:29:52 -08:00
parent b22193dc2b
commit f207bcbcdd
15 changed files with 443 additions and 3 deletions
+4
View File
@@ -89,6 +89,7 @@
| [Pandas Show Series](pandas_show_series.md) | Displays a Pandas Series as text. |
| [Pandas Show Text](pandas_show_text.md) | Displays a string. |
| [Pandas To String](pandas_to_string.md) | Converts a pandas DataFrame to a string representation. |
| [Pt Show Size](pt_show_size.md) | Displays PyTorch Size object as a string. |
| [Pt Show Text](pt_show_text.md) | Displays PyTorch tensor as a string. Note that the tensor is partially printed out when |
## IO
| Node | Description |
@@ -128,6 +129,8 @@
| --- | --- |
| [Numpy Float Create](numpy_float_create.md) | Creates a NumPy ndarray with 32-bit floating point precision |
| [Numpy Int Create](numpy_int_create.md) | Creates a NumPy ndarray with 32-bit integer |
| [Numpy Show](numpy_show.md) | Displays a Numpy ndarray as text. |
| [Numpy Squeeze](numpy_squeeze.md) | Removes a dimension at the specified position in the input array if it is of size 1. |
## Plot
| Node | Description |
| --- | --- |
@@ -283,6 +286,7 @@
## Transformation
| Node | Description |
| --- | --- |
| [Pandas Feature Split To Numpy](pandas_feature_split_to_numpy.md) | Splits a Pandas DataFrame into feature Numpy ndarray and label Numpy ndarray. |
| [Pandas Horizontal Concat](pandas_horizontal_concat.md) | Horizontally concatenates two pandas DataFrames. |
| [Pandas Horizontal Split](pandas_horizontal_split.md) | Horizontally splits a Pandas DataFrame into two pandas DataFrames. |
| [Pandas Join](pandas_join.md) | Merges two pandas DataFrames based on a common column. |
+17
View File
@@ -0,0 +1,17 @@
# Numpy Show
Displays a Numpy ndarray as text.
## Input
| Name | Data type |
|---|---|
| ndarray | Ndarray |
## Output
| Data type |
|---|
| String |
<HR>
Category: Numpy
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+20
View File
@@ -0,0 +1,20 @@
# Numpy Squeeze
Removes a dimension at the specified position in the input array if it is of size 1.
Specifying a tuple of dimensions is not supported.
## Input
| Name | Data type |
|---|---|
| array | Ndarray |
| dim | Int |
## Output
| Data type |
|---|
| Ndarray |
<HR>
Category: Numpy
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
@@ -0,0 +1,24 @@
# Pandas Feature Split To Numpy
Splits a Pandas DataFrame into feature Numpy ndarray and label Numpy ndarray.
If output_1d_label is set, label will be output as a 1d array instead of a 2d array.
As shown in the below screenshot, this node can replace multiple nodes that are used to split Pandas DataFrame into two DataFrames, convert to NumPy, then squeeze the label data.
![Pandas Feature Split To Numpy](../images/pandas_feature_split.png)
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| label_integer_position | Int |
| output_1d_label | Boolean |
## Output
| Data type |
|---|
| Ndarray |
| Ndarray |
<HR>
Category: Transformation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+17
View File
@@ -0,0 +1,17 @@
# Pt Show Size
Displays PyTorch Size object as a string.
## Input
| Name | Data type |
|---|---|
| size | Ptsize |
## Output
| Data type |
|---|
| String |
<HR>
Category: Display data
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.