FDSRashid commited on
Commit
be45a30
·
1 Parent(s): bcb1f39

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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/full_geocoded_edge", 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()[['City', 'Year', 'Taraf', 'Hadith', 'Isnad', 'full_geom']]
15
- merged_geo["Coordinates"] = geopandas.GeoSeries.from_wkt(merged_geo["full_geom"])
16
- geodf = geopandas.GeoDataFrame(merged_geo, geometry= 'Coordinates').drop(['full_geom'], axis = 1)
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)