hodgesmr / election_map_tutorial Goto Github PK
View Code? Open in Web Editor NEWJupyter Notebook tutorial demonstrating how to map OpenElections Data
License: BSD 3-Clause "New" or "Revised" License
Jupyter Notebook tutorial demonstrating how to map OpenElections Data
License: BSD 3-Clause "New" or "Revised" License
Hi
A quick heads up that I've just tried running the election map demo tutorial on MyBinder (docs) and it's hitting a third party issue (this one?) in the third and fourth code cells when .to_crs()
is called.
RuntimeError Traceback (most recent call last)
<ipython-input-3-4120ad92640f> in <module>
1 precincts_gdf = gpd.read_file(PRECINCT_SHAPES_PATH, encoding='cp1252', mode='r')
----> 2 precincts_gdf = precincts_gdf.to_crs('+init=epsg:32613')
3 print(precincts_gdf.columns)
4 print(precincts_gdf.head()[['NAME10']])
5 precincts_gdf.plot(alpha=1, edgecolor='black', color='None', linewidth=1)
/srv/conda/lib/python3.6/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
/srv/conda/lib/python3.6/site-packages/geopandas/geoseries.py in to_crs(self, crs, epsg)
302 except TypeError:
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)
/srv/conda/lib/python3.6/site-packages/pyproj/__init__.py in __new__(self, projparams, preserve_units, **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'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.