netflypsb commited on
Commit
b6d1d8d
·
verified ·
1 Parent(s): 9188f50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.cache
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'])