Spaces:
Running
Running
change year to string to get rid of comma
Browse files
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()
|