Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import datetime as dt
|
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
|
| 6 |
# Function to load data
|
| 7 |
-
@st.
|
| 8 |
def load_data(file):
|
| 9 |
df = pd.read_csv(file)
|
| 10 |
df['Date of Birth'] = pd.to_datetime(df['Date of Birth'])
|
|
|
|
| 4 |
import matplotlib.pyplot as plt
|
| 5 |
|
| 6 |
# Function to load data
|
| 7 |
+
@st.cache_data
|
| 8 |
def load_data(file):
|
| 9 |
df = pd.read_csv(file)
|
| 10 |
df['Date of Birth'] = pd.to_datetime(df['Date of Birth'])
|