Sebastien Peytrignet
commited on
Commit
β’
83112fc
1
Parent(s):
1d0d64c
chore: Update folium_static dimensions in app.py
Browse files
app.py
CHANGED
@@ -135,7 +135,7 @@ if st.button('π Fetch Data'):
|
|
135 |
choropleth_map.add_child(info)
|
136 |
choropleth_map.keep_in_front(info)
|
137 |
|
138 |
-
folium_static(choropleth_map, width=
|
139 |
|
140 |
# Sample the DataFrame to get 20 random entries
|
141 |
sample_df = df.sample(n=min(20, len(df)), random_state=1)
|
@@ -157,7 +157,7 @@ if st.button('π Fetch Data'):
|
|
157 |
# Apply the function to each row in the sampled DataFrame
|
158 |
sample_df.apply(add_marker, axis=1)
|
159 |
|
160 |
-
folium_static(marker_map, width=
|
161 |
|
162 |
# Option to download the full dataset
|
163 |
csv = df.to_csv(index=False)
|
@@ -170,4 +170,4 @@ if st.button('π Fetch Data'):
|
|
170 |
else:
|
171 |
st.warning('β οΈ Please enter a provider name.')
|
172 |
|
173 |
-
# Run this app with: streamlit run
|
|
|
135 |
choropleth_map.add_child(info)
|
136 |
choropleth_map.keep_in_front(info)
|
137 |
|
138 |
+
folium_static(choropleth_map, width=500, height=500)
|
139 |
|
140 |
# Sample the DataFrame to get 20 random entries
|
141 |
sample_df = df.sample(n=min(20, len(df)), random_state=1)
|
|
|
157 |
# Apply the function to each row in the sampled DataFrame
|
158 |
sample_df.apply(add_marker, axis=1)
|
159 |
|
160 |
+
folium_static(marker_map, width=500, height=500)
|
161 |
|
162 |
# Option to download the full dataset
|
163 |
csv = df.to_csv(index=False)
|
|
|
170 |
else:
|
171 |
st.warning('β οΈ Please enter a provider name.')
|
172 |
|
173 |
+
# Run this app with: streamlit run app.py
|