@@ -255,16 +255,16 @@ def test_choropleth_geopandas_numeric(self):
255
255
"""Test to make sure that Choropleth function does complete the lookup
256
256
between a GeoJSON generated from a GeoDataFrame and data from the GeoDataFrame itself.
257
257
258
- key_on field is dtype = str, while column 0 is dtype = int
258
+ key_on field is dtype = str, while column 0 is dtype = int
259
259
All geometries have matching values (no nan_fill_color allowed)
260
260
"""
261
261
self .setup ()
262
262
263
263
with open (os .path .join (rootpath , 'geo_grid.json' )) as f :
264
264
geo_data = json .load (f )
265
-
265
+
266
266
geo_data_frame = gpd .GeoDataFrame .from_features (geo_data ['features' ])
267
- geo_data_frame .crs = {'init' :'epsg:4326' }
267
+ geo_data_frame .crs = {'init' : 'epsg:4326' }
268
268
fill_color = 'BuPu'
269
269
key_on = 'feature.id'
270
270
@@ -294,9 +294,9 @@ def test_choropleth_geopandas_mixed(self):
294
294
295
295
with open (os .path .join (rootpath , 'geo_grid.json' )) as f :
296
296
geo_data = json .load (f )
297
-
297
+
298
298
geo_data_frame = gpd .GeoDataFrame .from_features (geo_data ['features' ])
299
- geo_data_frame .crs = {'init' :'epsg:4326' }
299
+ geo_data_frame .crs = {'init' : 'epsg:4326' }
300
300
data = pd .DataFrame ({'idx' : {'0' : 0 , '1' : '1' , '2' : 2 , '3' : 3 , '4' : 4 , '5' : 5 },
301
301
'value' : {'0' : 78.0 , '1' : 39.0 , '2' : 0.0 , '3' : 81.0 , '4' : 42.0 , '5' : 68.0 }})
302
302
fill_color = 'BuPu'
@@ -330,9 +330,9 @@ def test_choropleth_geopandas_str(self):
330
330
331
331
with open (os .path .join (rootpath , 'geo_grid.json' )) as f :
332
332
geo_data = json .load (f )
333
-
333
+
334
334
geo_data_frame = gpd .GeoDataFrame .from_features (geo_data ['features' ])
335
- geo_data_frame .crs = {'init' :'epsg:4326' }
335
+ geo_data_frame .crs = {'init' : 'epsg:4326' }
336
336
data = pd .DataFrame ({'idx' : {'0' : '0' , '1' : '1' , '2' : '2' , '3' : '3' , '4' : '4' , '5' : '5' },
337
337
'value' : {'0' : 78.0 , '1' : 39.0 , '2' : 0.0 , '3' : 81.0 , '4' : 42.0 , '5' : 68.0 }})
338
338
fill_color = 'BuPu'
0 commit comments