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:
HowToSD
2025-03-01 16:45:41 -08:00
parent ce52e12a5d
commit 62e4f6efb8
23 changed files with 526 additions and 9 deletions
+2
View File
@@ -103,6 +103,7 @@
| [Pandas Create From Dict](pandas_create_from_dict.md) | Creates a pandas DataFrame from a Python dictionary. |
| [Pandas Create From Multiple Dict](pandas_create_from_multiple_dict.md) | Creates a pandas DataFrame from multiple Python dictionaries. |
| [Pandas Create From Numpy](pandas_create_from_numpy.md) | Creates a pandas DataFrame from a NumPy ndarray. |
| [Pandas Create From Tensor](pandas_create_from_tensor.md) | Creates a pandas DataFrame from a PyTorch tensor. |
| [Pandas Create Series From Dict](pandas_create_series_from_dict.md) | Creates a Pandas Series from a Python dictionary. |
| [Pandas Create With Index](pandas_create_with_index.md) | Creates a pandas DataFrame using values entered in the text field. Input data is assumed to have an index. |
| [Pandas Load CSV](pandas_load_csv.md) | Loads CSV files into a pandas DataFrame. |
@@ -297,6 +298,7 @@
| [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. |
| [Pandas Rename](pandas_rename.md) | Renames an index (row label) or a column label. |
| [Pandas Rename Advanced](pandas_rename_advanced.md) | Renames one or more indices (row labels) or column labels to new labels. |
| [Pandas Series To Data Frame](pandas_series_to_dataframe.md) | Converts a Pandas Series to a DataFrame. |
| [Pandas Set Index](pandas_set_index.md) | Create index (row label) from existing column or columns. |
| [Pandas Sort](pandas_sort.md) | Sorts a pandas DataFrame by a specified column. |
@@ -0,0 +1,17 @@
# Pandas Create From Tensor
Creates a pandas DataFrame from a PyTorch tensor.
## Input
| Name | Data type |
|---|---|
| tens | Tensor |
## Output
| Data type |
|---|
| DataFrame |
<HR>
Category: IO
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.
@@ -1,11 +1,14 @@
# Pandas Horizontal Concat
Horizontally concatenates two pandas DataFrames.
If reset labels is set to True, column labels are reset to a sequential integer index.
## Input
| Name | Data type |
|---|---|
| a_dataframe | DataFrame |
| b_dataframe | DataFrame |
| reset_labels | Boolean |
## Output
| Data type |
+28
View File
@@ -0,0 +1,28 @@
# Pandas Rename Advanced
Renames one or more indices (row labels) or column labels to new labels.
Specify the replacement in a Python dictionary format:
```
{
"old_foo": "new_bar",
0: 5
}
```
A string label has to be double-quoted.
## Input
| Name | Data type |
|---|---|
| dataframe | DataFrame |
| axis | |
| replacement_pairs | String |
## Output
| Data type |
|---|
| DataFrame |
<HR>
Category: Transformation
ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.