Created
October 2, 2019 17:05
-
-
Save treuille/fdc5ff1e68788086a568479c6ad3b954 to your computer and use it in GitHub Desktop.
Answer: Rendering a DataFrame with 100,000 rows
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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