Skip to content

A streamlit component to render pandas DataFrames as jQuery DataTables.

License

Notifications You must be signed in to change notification settings

lululukas/st-datatables

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

st-datatables

A component that renders a pandas.DataFrame as a jQuery DataTable. For more information on DataTables see datatables.net.

Install

pip install st-datatables

Usage

Create the file like the one at examples/example.py:

import pandas as pd
import streamlit as st
from st_datatables import st_datatable


st.title("st-datatables demo")

df = pd.read_csv(
    "https://raw.githubusercontent.com/fivethirtyeight/data/master/airline-safety/airline-safety.csv"
)

st_datatable(df)

Then run the file with streamlit:

streamlit run example.py

Alternatives

This is an alternative to streamlit-aggrid, check it out here.

About

A streamlit component to render pandas DataFrames as jQuery DataTables.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 49.1%
  • TypeScript 40.4%
  • HTML 8.8%
  • Shell 1.7%