Nodes/ComfyUI-Data-Analysis/Pandas Series To String
ComfyUI Node

Pandas Series To String

Pandas Series To String

By HowToSD·Created 2 years ago·Updated about a year ago· 23
Pandas Series To String
  • series
  • STRING

Data that you can't see might as well not exist, and ComfyUI gives you no default way to look at a pandas Series. Pandas Series To String fixes that with the dumbest, most useful implementation possible: it converts the Series to its string representation and hands it out as a STRING. Wire the output into any text-display node and suddenly you can actually read what's in your column instead of debugging blind.

It's part of HowToSD/ComfyUI-Data-Analysis, the pandas-in-ComfyUI pack, under its Display data category. It sits alongside Pandas Show DataFrame (the table version) and Pandas Show Index, which together form the "let me look at this thing" family.

How it works

One call: str(series). Python's string conversion of a Series gives you the familiar terminal-style output - the index on the left, values on the right, dtype at the bottom - and the node returns that as a single STRING. That's it. There's no formatting control and no HTML table, which is fine: you're getting the raw pandas representation, which is exactly what you'd print in a notebook.

This is not an output node - it doesn't stamp the result into the workflow or render it on the node itself the way Show DataFrame does. It's a plain transformer that converts types, so pair it with a display or text node (or the pack's Show Text) to actually surface the result on the canvas.

Inputs and output

  • series - the PDSERIES to stringify.

Output: a single STRING containing the series' text representation.

Installation

Standard pack install. ComfyUI Manager: search Data analysis, install ComfyUI-Data-Analysis. Or:

cd ComfyUI/custom_nodes
git clone https://github.com/HowToSD/ComfyUI-Data-Analysis.git
mv ComfyUI-Data-Analysis data-analysis   # examples need this folder name
pip install -r requirements.txt

Restart, reload. Deps: pandas, matplotlib, seaborn, scipy, scikit-learn, openpyxl, lxml - no GPU, no model downloads.

Notes and gotchas

The string you get is pandas' default representation, which truncates long series with an ellipsis (...) - a 10,000-row series shows only the head and tail. That's honest preview behavior, not a bug, but if you need the whole thing you'll want to slice it down or accept the preview. Also, the output is only as useful as what you feed it: pair this with Pandas Select Column As Series to inspect a specific column, or with a Show/Save node to get the text onto the canvas or into a file. It's a small node with a single job, and for debugging data pipelines it earns its place.

CategoryData Analysis

Inputs (1)

NameTypeDefaultDescription
seriesPDSERIES

Outputs (1)

NameTypeDescription
STRINGSTRING