Skip to main content
Open in Kaggle  Open in Colab  Download Notebook
This documentation page is also available as an interactive notebook. You can launch the notebook in Kaggle or Colab, or download it for use with an IDE or local Jupyter installation, by clicking one of the above links.
Load data from Excel spreadsheets (.xlsx) into Pixeltable tables.

Problem

You have data in Excel format that needs to be loaded for AI processing—reports, inventory lists, or business data exported from other systems.

Solution

What’s in this recipe:
  • Import Excel files directly into tables
  • Handle multiple sheets
  • Override column types when needed
You use pxt.create_table() with an Excel file path as the source parameter. Pixeltable infers column types automatically.

Setup

Create sample Excel file

Import Excel file

Connected to Pixeltable database at: postgresql+psycopg://postgres:@/pixeltable?host=/Users/pjlb/.pixeltable/pgdata
Created directory ‘excel_demo’.
<pixeltable.catalog.dir.Dir at 0x30b6cb730>
Created table ‘orders’.Inserting rows into `orders`: 0 rows [00:00, ? rows/s]
Inserting rows into `orders`: 5 rows [00:00, 501.21 rows/s]
Inserted 5 rows with 0 errors.

Add computed columns

Added 5 column values with 0 errors.
5 rows updated, 10 values computed.

Explanation

Import methods:
Excel-specific options: Pass Pandas read_excel arguments via extra_args:
Common extra_args:

See also

Last modified on June 24, 2026