XinyiC11 commited on
Commit
2dc408a
·
verified ·
1 Parent(s): 466396a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +1 -1
src/streamlit_app.py CHANGED
@@ -31,7 +31,7 @@ def load_crime_data():
31
  """Read directly from the local CSV file instead of slow API pagination."""
32
  try:
33
  # 直接读取本地上传的 CSV 文件
34
- df = pd.read_csv("final/Crimes_-_2026_20260417.csv")
35
 
36
  # 将原本诸如 "Primary Type" 的表头标准化为 "primary_type" 以适配后续代码
37
  df.columns = [c.lower().replace(" ", "_") for c in df.columns]
 
31
  """Read directly from the local CSV file instead of slow API pagination."""
32
  try:
33
  # 直接读取本地上传的 CSV 文件
34
+ df = pd.read_csv("Crimes_-_2026_20260417.csv")
35
 
36
  # 将原本诸如 "Primary Type" 的表头标准化为 "primary_type" 以适配后续代码
37
  df.columns = [c.lower().replace(" ", "_") for c in df.columns]