Skip to content

Instantly share code, notes, and snippets.

@treuille
Created October 2, 2019 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treuille/fdc5ff1e68788086a568479c6ad3b954 to your computer and use it in GitHub Desktop.
Save treuille/fdc5ff1e68788086a568479c6ad3b954 to your computer and use it in GitHub Desktop.
Answer: Rendering a DataFrame with 100,000 rows
import streamlit as st
import pandas as pd
DATA_BUCKET = "http://s3-us-west-2.amazonaws.com/streamlit-demo-data/"
DATA_URL = DATA_BUCKET + "uber-raw-data-sep14.csv.gz"
read_and_cache_csv = st.cache(pd.read_csv)
data = read_and_cache_csv(DATA_URL, nrows=100000)
st.write('Data', data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment