Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
import graphviz as graphviz
|
3 |
-
import pydeck as pdk
|
4 |
import pandas as pd
|
5 |
import numpy as np
|
6 |
|
@@ -101,43 +100,6 @@ digraph R {
|
|
101 |
}
|
102 |
''')
|
103 |
|
104 |
-
|
105 |
-
# pydeck example
|
106 |
-
st.title('Pydeck Example: https://docs.streamlit.io/library/api-reference/charts/st.pydeck_chart')
|
107 |
-
df = pd.DataFrame(
|
108 |
-
np.random.randn(1000, 2) / [50, 50] + [44.9366, -93.6661],
|
109 |
-
columns=['lat', 'lon'])
|
110 |
-
|
111 |
-
# 44.9366° N, -93.6661° W : Mound MN
|
112 |
-
st.pydeck_chart(pdk.Deck(
|
113 |
-
map_style=None,
|
114 |
-
initial_view_state=pdk.ViewState(
|
115 |
-
latitude=44.9366,
|
116 |
-
longitude=-93.6661,
|
117 |
-
zoom=11,
|
118 |
-
pitch=50,
|
119 |
-
),
|
120 |
-
layers=[
|
121 |
-
pdk.Layer(
|
122 |
-
'HexagonLayer',
|
123 |
-
data=df,
|
124 |
-
get_position='[lon, lat]',
|
125 |
-
radius=200,
|
126 |
-
elevation_scale=4,
|
127 |
-
elevation_range=[0, 1000],
|
128 |
-
pickable=True,
|
129 |
-
extruded=True,
|
130 |
-
),
|
131 |
-
pdk.Layer(
|
132 |
-
'ScatterplotLayer',
|
133 |
-
data=df,
|
134 |
-
get_position='[lon, lat]',
|
135 |
-
get_color='[200, 30, 0, 160]',
|
136 |
-
get_radius=200,
|
137 |
-
),
|
138 |
-
],
|
139 |
-
))
|
140 |
-
|
141 |
st.title('Vega Lite Example: https://docs.streamlit.io/library/api-reference/charts/st.vega_lite_chart ')
|
142 |
df = pd.DataFrame(
|
143 |
np.random.randn(200, 3),
|
|
|
1 |
import streamlit as st
|
2 |
import graphviz as graphviz
|
|
|
3 |
import pandas as pd
|
4 |
import numpy as np
|
5 |
|
|
|
100 |
}
|
101 |
''')
|
102 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
st.title('Vega Lite Example: https://docs.streamlit.io/library/api-reference/charts/st.vega_lite_chart ')
|
104 |
df = pd.DataFrame(
|
105 |
np.random.randn(200, 3),
|