whitphx's picture
whitphx HF Staff
Copy sample files from streamlit/docs/python/api-examples-source/* (4e54057)
9c1ffe9
raw
history blame contribute delete
256 Bytes
import numpy as np
import pandas as pd
import streamlit as st
@st.cache_data
def load_data():
df = pd.DataFrame(
np.random.randn(1000, 2) / [50, 50] + [37.76, -122.4], columns=["lat", "lon"]
)
return df
df = load_data()
st.map(df)