Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,13 +7,13 @@ import geopandas
|
|
7 |
import plotly.express as px
|
8 |
|
9 |
Secret_token = os.getenv('token')
|
10 |
-
dataset = load_dataset("FDSRashid/
|
11 |
dataset_s = load_dataset("FDSRashid/taraf_by_year", token = Secret_token,split="train")
|
12 |
|
13 |
taraf_s = dataset_s.to_pandas()
|
14 |
-
merged_geo = dataset.to_pandas()
|
15 |
-
merged_geo["Coordinates"] = geopandas.GeoSeries.from_wkt(merged_geo["
|
16 |
-
geodf = geopandas.GeoDataFrame(merged_geo, geometry= 'Coordinates')
|
17 |
|
18 |
|
19 |
taraf_s = taraf_s.sort_values(['City', 'Year'], ascending=True)
|
|
|
7 |
import plotly.express as px
|
8 |
|
9 |
Secret_token = os.getenv('token')
|
10 |
+
dataset = load_dataset("FDSRashid/taraf_geo", token = Secret_token,split="train")
|
11 |
dataset_s = load_dataset("FDSRashid/taraf_by_year", token = Secret_token,split="train")
|
12 |
|
13 |
taraf_s = dataset_s.to_pandas()
|
14 |
+
merged_geo = dataset.to_pandas()
|
15 |
+
merged_geo["Coordinates"] = geopandas.GeoSeries.from_wkt(merged_geo["geometry"])
|
16 |
+
geodf = geopandas.GeoDataFrame(merged_geo, geometry= 'Coordinates')
|
17 |
|
18 |
|
19 |
taraf_s = taraf_s.sort_values(['City', 'Year'], ascending=True)
|