Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ import pandas as pd
|
|
4 |
|
5 |
st.set_page_config(layout="wide")
|
6 |
|
7 |
-
@st.
|
8 |
def load_data():
|
9 |
-
df = pd.read_csv(
|
10 |
return df
|
11 |
|
12 |
st.write(
|
@@ -23,7 +23,7 @@ st.pydeck_chart(pdk.Deck(
|
|
23 |
initial_view_state=pdk.ViewState(
|
24 |
latitude=40.7,
|
25 |
longitude=-74.0,
|
26 |
-
zoom=
|
27 |
pitch=50,
|
28 |
),
|
29 |
layers=[
|
|
|
4 |
|
5 |
st.set_page_config(layout="wide")
|
6 |
|
7 |
+
@st.cache(allow_output_mutation=True)
|
8 |
def load_data():
|
9 |
+
df = pd.read_csv("https://raw.githubusercontent.com/OOlajide/nyc_crime_dataset/main/nyc_crimes.csv")
|
10 |
return df
|
11 |
|
12 |
st.write(
|
|
|
23 |
initial_view_state=pdk.ViewState(
|
24 |
latitude=40.7,
|
25 |
longitude=-74.0,
|
26 |
+
zoom=9,
|
27 |
pitch=50,
|
28 |
),
|
29 |
layers=[
|