''' Tentei rodar mais não funciona segue as informações abaixo:
crs = {'init': 'epsg:4326'}
pyproj: '1.9.6' geopandas: '0.4.1'
base = folium.Map([y, x], zoom_start=11)
base.choropleth(rj)
base '''
C:\Users\eoliv\anaconda3\lib\site-packages\folium\folium.py:415: FutureWarning: The choropleth method has been deprecated. Instead use the new Choropleth class, which has the same arguments. See the example notebook 'GeoJSON_and_choropleth' for how to do this.
FutureWarning
RuntimeError Traceback (most recent call last) in 1 base = folium.Map([y, x], zoom_start=11) ----> 2 base.choropleth(rj) 3 base
~\anaconda3\lib\site-packages\folium\folium.py in choropleth(self, args, **kwargs) 416 ) 417 from folium.features import Choropleth --> 418 self.add_child(Choropleth(args, **kwargs)) 419 420 def keep_in_front(self, *args):
~\anaconda3\lib\site-packages\folium\features.py in init(self, geo_data, data, columns, key_on, bins, fill_color, nan_fill_color, fill_opacity, nan_fill_opacity, line_color, line_weight, line_opacity, name, legend_name, overlay, control, show, topojson, smooth_factor, highlight, **kwargs) 1249 style_function=style_function, 1250 smooth_factor=smooth_factor, -> 1251 highlight_function=highlight_function if highlight else None) 1252 1253 self.add_child(self.geojson)
~\anaconda3\lib\site-packages\folium\features.py in init(self, data, style_function, highlight_function, name, overlay, control, show, smooth_factor, tooltip, embed, popup) 451 self.highlight = highlight_function is not None 452 --> 453 self.data = self.process_data(data) 454 455 if self.style or self.highlight:
~\anaconda3\lib\site-packages\folium\features.py in process_data(self, data) 493 self.embed = True 494 if hasattr(data, 'to_crs'): --> 495 data = data.to_crs('EPSG:4326') 496 return json.loads(json.dumps(data.geo_interface)) 497 else:
~\anaconda3\lib\site-packages\geopandas\geodataframe.py in to_crs(self, crs, epsg, inplace) 441 else: 442 df = self.copy() --> 443 geom = df.geometry.to_crs(crs=crs, epsg=epsg) 444 df.geometry = geom 445 df.crs = geom.crs
~\anaconda3\lib\site-packages\geopandas\geoseries.py in to_crs(self, crs, epsg) 303 raise TypeError('Must set either crs or epsg for output.') 304 proj_in = pyproj.Proj(self.crs, preserve_units=True) --> 305 proj_out = pyproj.Proj(crs, preserve_units=True) 306 project = partial(pyproj.transform, proj_in, proj_out) 307 result = self.apply(lambda geom: transform(project, geom))
~\anaconda3\lib\site-packages\pyproj_init__.py in new(self, projparams, preserveunits, *kwargs) 360 # on case-insensitive filesystems). 361 projstring = projstring.replace('EPSG','epsg') --> 362 return proj.Proj._new__(self, projstring) 363 364 def call(self, *args, *kw):
proj.pyx in proj.Proj.cinit__()
RuntimeError: b'no arguments in initialization list'