Added Pandas Loc Cell Str node.

This commit is contained in:
HowToSD
2025-02-14 16:59:43 -08:00
parent a9736caea2
commit 21ccfa8178
6 changed files with 70 additions and 1 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

+8
View File
@@ -22,6 +22,7 @@ You can right-click, select **Add Node**, go to **Data Analysis**, and look for
| **Pandas Index** | Extract row labels (index) |
| **Pandas Select Columns** | Select specific columns from a DataFrame |
| **Pandas Select Rows** | Filter rows based on conditions |
| **Pandas Loc Cell Str** | Select a cell by row label (index) and column label (index) |
| **Pandas Join** | Join two DataFrames |
| **Pandas Head** | Extract the first few rows |
| **Pandas Show DataFrame** | Display DataFrame contents |
@@ -63,6 +64,13 @@ Use **Pandas Select Columns** for selecting columns, **Pandas Select Rows** to s
![Pandas select subset](images/subset.jpg)
## Selecting a cell by row label (index) and column label (index)
Use **Pandas Loc Cell Str** for selecting a cell by row label (index) and column label (index). Data type of the labels needs to be specified as shown below:
![Pandas Loc Cell Str](images/loc_cell_str.png)
This node outputs the cell value as a string irrespective of the actual cell data type.
## Joining DataFrames
Use **Pandas Join**. You can select from inner, left, right, outer joins.
First, use two **Pandas Load CSV** nodes to load two CSVs for the left DataFrame and right DataFrame.