Extensions/Table Workbench
ComfyUI Extension

Table Workbench

Inspect, clean, join, and export tabular data in ComfyUI with pandas.

By wd-Su·Created a day ago·Updated a day ago· 0
wd-Su/ComfyUI-TableWorkbench
Nodes—
On cloudLocal install
Stars0
Updateda day ago
Readme

Table Workbench

English · 简体中文

Table Workbench adds 23 nodes for working with tabular data in ComfyUI. Read a spreadsheet, inspect missing values and outliers, clean the records, join a second table, and export the result. Find the nodes under Table Workbench in the node library. Each Table socket carries a pandas DataFrame, so you can send the same table to an inspector and a cleaning node at the same time.

The nodes follow ComfyUI’s English or Chinese language setting. You can share the same workflow across both languages. Column names, cell values, and custom node titles appear exactly as saved.

Data Inspector in Chinese, showing eight sample orders and highlighting missing cells

Inspect your first table

  1. Add Read Data File and click Choose local file…. This copies the selected file into the ComfyUI server’s input/pandas folder. For a file that changes regularly, enter its absolute path on the server in File path to read the source directly. You can also copy a range from Excel, including its header row, into Paste Table and select the Tab delimiter.
  2. Connect the Table output to Data Inspector and run the workflow. Switch between the row preview, column types, missing values, distributions, IQR outliers, and duplicate rows. You can switch views or filter columns without running the workflow again.
  3. The top metrics cover the entire table. The detail view shows up to 64 columns at a time and uses every row to calculate each column’s statistics. To inspect another part of the table, change First detail column or First preview row and run again. Row numbers start at 1. The index shows the original pandas labels.
  4. To check what a cleaning step did, connect the second output of Filter Rows, Remove Duplicate Rows, or Handle IQR Outliers to another inspector. It shows the rows that failed the filter, the duplicates that were removed, or the rows flagged as outliers.

Join two files and export the result

  1. Add two Read Data File nodes. Connect them to Left table and Right table on Join Tables by Key.
  2. Click Select join keys… and select one column on each side. In the bundled orders example, pair 客户编号 (customer ID in the orders table) with 编号 (ID in the customers table). With a file reader connected directly, the picker uses its current file, sheet, and header settings. If a cleaning node feeds the join, run it once to populate the picker. Add one pair per key for a multi-column join. You can also type comma-separated names. If a name contains a comma, use a JSON array such as ["Region,Street","Date"].
  3. To keep every order, select Left join. If each customer should appear only once on the right, select Many-to-one (unique right keys). Enable Add merge indicator to see which orders found a match in the _merge column. As in pandas, missing keys can match each other, and repeated keys can produce multiple rows. Leaving both key lists blank selects a key automatically only when the tables share exactly one column name.
  4. Connect the result to Export Data File. Set Filename to a name such as orders.xlsx. Output folder accepts an absolute path or a subfolder of the ComfyUI output folder. Each run writes a file and displays its saved path. By default, an existing filename gets a numeric suffix.

The join-key picker lists up to 2,048 columns. For large JSON and line-delimited JSON files, the quick preview reads the first records. You can enter a column name manually if it first appears later in the file.

Available operations

| Task | Operations | | --- | --- | | Read and write | CSV, TSV, XLSX, JSON arrays of records, JSONL, NDJSON, and Parquet. Paste CSV text or a range copied from Excel. | | Work with columns | Select and reorder columns, rename them, convert types, clean text, extract date parts, and calculate a new column. | | Work with rows | Filter, sort by multiple columns, handle missing values, remove duplicates, handle IQR outliers, and take or sample rows. | | Combine tables | Join on keys, append rows by column name, or place columns side by side by row position. | | Summarize and reshape | Group and aggregate, count values and percentages, calculate numeric correlations, and pivot between long and wide formats. |

CSV reading supports Unicode encodings and falls back to GB18030 in automatic mode. For IDs such as 00123, enable Preserve text IDs in the reader’s advanced settings. For Excel, select a sheet by name or enter #2 for the second sheet. XLSX export writes timezone-aware timestamps as ISO 8601 text with their UTC offset and timezone-naive dates as Excel dates. JSON exports use one object per record.

Example workflows

Drag either workflow onto the ComfyUI canvas and click Run. Both include their input data.

  • Join orders and inspect the data combines orders with customer regions. Look for a duplicate order, an unusually large amount, and an order with no matching customer. The inspector should report 8 rows, 6 columns, 3 missing cells, and 1 duplicate row. The regional totals include all original order rows. To compare cleaned totals, insert a cleaning node after the join. The workflow exports 地区销售额.xlsx into output/pandas-demo.
  • Inspect and clean outliers starts with eight measurements. It removes duplicate sample IDs, marks out-of-range temperatures as missing, and fills missing temperatures with the median. One inspector shows the original row with a temperature of 99. The other shows 7 complete rows after cleaning.

Manual installation

Clone the repository into ComfyUI/custom_nodes/ComfyUI-TableWorkbench. Install its requirements.txt with the Python interpreter that runs ComfyUI, then restart ComfyUI. The Excel nodes use openpyxl and Parquet support uses pyarrow.

For the Windows portable edition, run the following command from the directory that contains python_embeded.

.\python_embeded\python.exe -s -m pip install -r .\ComfyUI\custom_nodes\ComfyUI-TableWorkbench\requirements.txt