myshirk commited on
Commit
8041be5
·
verified ·
1 Parent(s): c6179a9

change year to string to get rid of comma

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ def get_data():
35
 
36
  # Ensure year column is int, show blank instead of NaN
37
  if "year" in df_.columns:
38
- df_["year"] = pd.to_numeric(df_["year"], errors="coerce").astype("Int64")
39
  return df_
40
 
41
  df = get_data()
 
35
 
36
  # Ensure year column is int, show blank instead of NaN
37
  if "year" in df_.columns:
38
+ df_["year"] = pd.to_numeric(df_["year"], errors="coerce").astype("Int64").astype(str).replace({'<NA>': ''})
39
  return df_
40
 
41
  df = get_data()