Supported Libraries
marimo supports multiple dataframe libraries:- pandas - The most popular Python data analysis library
- polars - High-performance DataFrame library
- pyarrow - Apache Arrow in Python
- ibis - Unified interface for SQL and dataframes
- DuckDB - In-process SQL database
Basic Usage
Interactive Transformations
Themo.ui.dataframe component allows users to apply transformations through the UI:
Accessing Transformed Data
Configuration Options
Format Mapping
Customize how values are displayed:Lazy Evaluation
For large datasets or lazy dataframes (Polars LazyFrame, Ibis), marimo automatically enables lazy mode:Export Options
Users can download transformed data in multiple formats:- CSV - With configurable encoding and separator
- JSON - With ASCII encoding option
- Parquet - Efficient columnar format
Code Generation
marimo can generate Python code for the transformations applied in the UI:Selection and Tables
For row/cell selection without transformations, usemo.ui.table instead:
Performance Tips
For DataFrames with more than 100,000 rows, lazy mode is automatically enabled to prevent loading all data into memory.
- Use
limitparameter for remote/lazy data sources - Enable
lazy=Truefor expensive transformations - Consider Polars LazyFrame for very large datasets
- Use
page_sizeto control initial rendering cost