Added Pandas at, iat getter and setter nodes.

This commit is contained in:
HowToSD
2025-03-05 18:25:21 -08:00
parent ed1cef099e
commit be88fd6caa
75 changed files with 2826 additions and 47 deletions
+23 -1
View File
@@ -50,11 +50,19 @@
## Data subset selection
| Node | Description |
| --- | --- |
| [Pandas At Datetime](pandas_at_datetime.md) | Selects a cell from a pandas DataFrame and output as a Python datetime.datetime data. |
| [Pandas At Float](pandas_at_float.md) | Selects a cell from a pandas DataFrame and output as a Python float. |
| [Pandas At Int](pandas_at_int.md) | Selects a cell from a pandas DataFrame and output as a Python int. |
| [Pandas At String](pandas_at_string.md) | Selects a cell from a pandas DataFrame and output as a string. |
| [Pandas Head](pandas_head.md) | Retrieves the first few rows of a pandas DataFrame. |
| [Pandas Iat Datetime](pandas_iat_datetime.md) | Selects a cell from a pandas DataFrame and output as a Python datetime.datetime data. |
| [Pandas Iat Float](pandas_iat_float.md) | Selects a cell from a pandas DataFrame and output as a Python float. |
| [Pandas Iat Int](pandas_iat_int.md) | Selects a cell from a pandas DataFrame and output as a Python int. |
| [Pandas Iat String](pandas_iat_string.md) | Selects a cell from a pandas DataFrame and output as a string. |
| [Pandas Iloc Row Series](pandas_iloc_row_series.md) | Selects a row from a pandas DataFrame and returning it as a Series. |
| [Pandas Iloc Rows Data Frame](pandas_iloc_rows_dataframe.md) | Selects rows from a pandas DataFrame and returning it as a DataFrame. |
| [Pandas Iloc Rows Slice Data Frame](pandas_iloc_rows_slice_dataframe.md) | 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](pandas_loc_cell_str.md) | Selects a cell from a pandas DataFrame and output as a string. |
| [Pandas Loc Cell String](pandas_loc_cell_string.md) | Selects a cell from a pandas DataFrame and output as a string. |
| [Pandas Loc Row MultiIndex DataFrame](pandas_loc_row_multiindex_dataframe.md) | Selects a row or rows from a pandas DataFrame with MultiIndex and output as a DataFrame. |
| [Pandas Loc Row Series](pandas_loc_row_series.md) | Selects a row from a pandas DataFrame and output as a Series. |
| [Pandas Select Columns](pandas_select_columns.md) | Selects specific columns from a pandas DataFrame. |
@@ -280,9 +288,15 @@
## Python wrapper
| Node | Description |
| --- | --- |
| [Py Datetime To String](py_datetime_to_string.md) | Converts a Python datetime.datetime value to a Python string |
| [Py Float To String](py_float_to_string.md) | Converts a Python float value to a Python string |
| [Py Int To String](py_int_to_string.md) | Converts a Python int value to a Python string |
| [Py Kv Float Create](py_kv_float_create.md) | Creates a Python dictionary with a string key and a float value. |
| [Py Kv Int Create](py_kv_int_create.md) | Creates a Python dictionary with an string key and an integer value. |
| [Py Kv String Create](py_kv_string_create.md) | Creates a Python dictionary with a string key and a string value. |
| [Py String To Datetime](py_string_to_datetime.md) | Converts a Python string to a Python datetime.datetime. |
| [Py String To Float](py_string_to_float.md) | Converts a Python string to a float. |
| [Py String To Int](py_string_to_int.md) | Converts a Python string to an int. |
## Summary statistics
| Node | Description |
| --- | --- |
@@ -303,9 +317,17 @@
## Transformation
| Node | Description |
| --- | --- |
| [Pandas At Set Datetime](pandas_at_set_datetime.md) | Sets a Python datetime.datetime data in a cell in a pandas DataFrame. |
| [Pandas At Set Float](pandas_at_set_float.md) | Sets a Python float data in a cell in a pandas DataFrame. |
| [Pandas At Set Int](pandas_at_set_int.md) | Sets a Python int data in a cell in a pandas DataFrame. |
| [Pandas At Set String](pandas_at_set_string.md) | Sets a Python string data in a cell in a pandas DataFrame. |
| [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 Iat Set Datetime](pandas_iat_set_datetime.md) | Sets a Python datetime.datetime data in a cell in a pandas DataFrame. |
| [Pandas Iat Set Float](pandas_iat_set_float.md) | Sets a Python float data in a cell from a pandas DataFrame. |
| [Pandas Iat Set Int](pandas_iat_set_int.md) | Sets a Python int data in a cell from a pandas DataFrame. |
| [Pandas Iat Set String](pandas_iat_set_string.md) | Sets a Python string in a cell in a pandas DataFrame. |
| [Pandas Join](pandas_join.md) | Merges two pandas DataFrames based on a common column. |
| [Pandas Melt](pandas_melt.md) | Performs an unpivot operation (melt) on a pandas DataFrame. |
| [Pandas Pivot](pandas_pivot.md) | Computes a pivot table from a pandas DataFrame. |
+21
View File
@@ -0,0 +1,21 @@
# Pandas At Datetime
Selects a cell from a pandas DataFrame and output as a Python datetime.datetime data.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_index | String |
| row_index_type | |
| column_label | String |
| column_label_type | |
## Output
| Data type |
|---|
| Pydatetime |
<HR>
Category: Data subset selection
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+21
View File
@@ -0,0 +1,21 @@
# Pandas At Float
Selects a cell from a pandas DataFrame and output as a Python float.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_index | String |
| row_index_type | |
| column_label | String |
| column_label_type | |
## Output
| Data type |
|---|
| Float |
<HR>
Category: Data subset selection
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+21
View File
@@ -0,0 +1,21 @@
# Pandas At Int
Selects a cell from a pandas DataFrame and output as a Python int.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_index | String |
| row_index_type | |
| column_label | String |
| column_label_type | |
## Output
| Data type |
|---|
| Int |
<HR>
Category: Data subset selection
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+24
View File
@@ -0,0 +1,24 @@
# Pandas At Set Datetime
Sets a Python datetime.datetime data in a cell in a pandas DataFrame.
This modifies the input DataFrame in place.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_index | String |
| row_index_type | |
| column_label | String |
| column_label_type | |
| data | Pydatetime |
## Output
| Data type |
|---|
| DataFrame |
<HR>
Category: Transformation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+24
View File
@@ -0,0 +1,24 @@
# Pandas At Set Float
Sets a Python float data in a cell in a pandas DataFrame.
This modifies the input DataFrame in place.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_index | String |
| row_index_type | |
| column_label | String |
| column_label_type | |
| data | Float |
## Output
| Data type |
|---|
| DataFrame |
<HR>
Category: Transformation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+24
View File
@@ -0,0 +1,24 @@
# Pandas At Set Int
Sets a Python int data in a cell in a pandas DataFrame.
This modifies the input DataFrame in place.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_index | String |
| row_index_type | |
| column_label | String |
| column_label_type | |
| data | Int |
## Output
| Data type |
|---|
| DataFrame |
<HR>
Category: Transformation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+24
View File
@@ -0,0 +1,24 @@
# Pandas At Set String
Sets a Python string data in a cell in a pandas DataFrame.
This modifies the input DataFrame in place.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_index | String |
| row_index_type | |
| column_label | String |
| column_label_type | |
| data | String |
## Output
| Data type |
|---|
| DataFrame |
<HR>
Category: Transformation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
@@ -1,4 +1,4 @@
# Pandas Loc Cell Str
# Pandas At String
Selects a cell from a pandas DataFrame and output as a string.
## Input
+19
View File
@@ -0,0 +1,19 @@
# Pandas Iat Datetime
Selects a cell from a pandas DataFrame and output as a Python datetime.datetime data.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_integer_position | Int |
| column_integer_position | Int |
## Output
| Data type |
|---|
| Pydatetime |
<HR>
Category: Data subset selection
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+19
View File
@@ -0,0 +1,19 @@
# Pandas Iat Float
Selects a cell from a pandas DataFrame and output as a Python float.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_integer_position | Int |
| column_integer_position | Int |
## Output
| Data type |
|---|
| Float |
<HR>
Category: Data subset selection
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+19
View File
@@ -0,0 +1,19 @@
# Pandas Iat Int
Selects a cell from a pandas DataFrame and output as a Python int.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_integer_position | Int |
| column_integer_position | Int |
## Output
| Data type |
|---|
| Int |
<HR>
Category: Data subset selection
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+22
View File
@@ -0,0 +1,22 @@
# Pandas Iat Set Datetime
Sets a Python datetime.datetime data in a cell in a pandas DataFrame.
This modifies the input DataFrame in place.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_integer_position | Int |
| column_integer_position | Int |
| data | Pydatetime |
## Output
| Data type |
|---|
| DataFrame |
<HR>
Category: Transformation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+22
View File
@@ -0,0 +1,22 @@
# Pandas Iat Set Float
Sets a Python float data in a cell from a pandas DataFrame.
This modifies the input DataFrame in place.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_integer_position | Int |
| column_integer_position | Int |
| data | Float |
## Output
| Data type |
|---|
| DataFrame |
<HR>
Category: Transformation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+22
View File
@@ -0,0 +1,22 @@
# Pandas Iat Set Int
Sets a Python int data in a cell from a pandas DataFrame.
This modifies the input DataFrame in place.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_integer_position | Int |
| column_integer_position | Int |
| data | Int |
## Output
| Data type |
|---|
| DataFrame |
<HR>
Category: Transformation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+22
View File
@@ -0,0 +1,22 @@
# Pandas Iat Set String
Sets a Python string in a cell in a pandas DataFrame.
This modifies the input DataFrame in place.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_integer_position | Int |
| column_integer_position | Int |
| data | String |
## Output
| Data type |
|---|
| DataFrame |
<HR>
Category: Transformation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+19
View File
@@ -0,0 +1,19 @@
# Pandas Iat String
Selects a cell from a pandas DataFrame and output as a string.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_integer_position | Int |
| column_integer_position | Int |
## Output
| Data type |
|---|
| String |
<HR>
Category: Data subset selection
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+21
View File
@@ -0,0 +1,21 @@
# Pandas Loc Cell String
Selects a cell from a pandas DataFrame and output as a string.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| row_index | String |
| row_index_type | |
| column_label | String |
| column_label_type | |
## Output
| Data type |
|---|
| String |
<HR>
Category: Data subset selection
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
-17
View File
@@ -1,17 +0,0 @@
# Conv Single Layer
A single convolutional layer followed by an optional ReLU activation and optional downsampling.
Shape is tensor of shape `(batch_size, in_channels, height, width)`.
Args:
in_channels (int): Number of input channels.
out_channels (int): Number of output channels.
kernel_size (int): Size of the convolutional kernel.
padding (int): Padding size for convolution.
downsample (bool): If True, applies a 2x2 MaxPooling layer.
apply_activation (bool, optional): If True, applies ReLU activation. Defaults to True.
<HR>
Category: Miscellaneous
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
-20
View File
@@ -1,20 +0,0 @@
# Dense Model
A multi-layer dense neural network with ReLU activation after each dense layer, except for the final layer.
Args:
dim_list (List[int]): List of feature dimensions. Should be of length `num_layers + 1`.
bias_list (List[bool]): List indicating whether each layer should have a bias.
num_layers (int): Number of layers in the model.
Example:
For a three-layer network:
- Layer 1: input -> output1
- Layer 2: output1 -> output2
- Layer 3: output2 -> output3
`dim_list = [input_dim, output1_dim, output2_dim, output3_dim]`
<HR>
Category: Miscellaneous
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+20
View File
@@ -0,0 +1,20 @@
# Py Datetime To String
Converts a Python datetime.datetime value to a Python string
Refer to [the Python documentation](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior) for date/time format strings.
## Input
| Name | Data type |
|---|---|
| value | Pydatetime |
| date_format | String |
## Output
| Data type |
|---|
| String |
<HR>
Category: Python wrapper
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+17
View File
@@ -0,0 +1,17 @@
# Py Float To String
Converts a Python float value to a Python string
## Input
| Name | Data type |
|---|---|
| value | Float |
## Output
| Data type |
|---|
| String |
<HR>
Category: Python wrapper
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+17
View File
@@ -0,0 +1,17 @@
# Py Int To String
Converts a Python int value to a Python string
## Input
| Name | Data type |
|---|---|
| value | Int |
## Output
| Data type |
|---|
| String |
<HR>
Category: Python wrapper
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+20
View File
@@ -0,0 +1,20 @@
# Py String To Datetime
Converts a Python string to a Python datetime.datetime.
Refer to [the Python documentation](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior) for date/time format strings.
## Input
| Name | Data type |
|---|---|
| value | String |
| date_format | String |
## Output
| Data type |
|---|
| Pydatetime |
<HR>
Category: Python wrapper
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+17
View File
@@ -0,0 +1,17 @@
# Py String To Float
Converts a Python string to a float.
## Input
| Name | Data type |
|---|---|
| value | String |
## Output
| Data type |
|---|
| Float |
<HR>
Category: Python wrapper
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
+17
View File
@@ -0,0 +1,17 @@
# Py String To Int
Converts a Python string to an int.
## Input
| Name | Data type |
|---|---|
| value | String |
## Output
| Data type |
|---|
| Int |
<HR>
Category: Python wrapper
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.