fillna error with 0.6
See original GitHub issueWhen performing fillna
with numpy.nan
on the entire dataframe, I get this error in version 0.6:
~/miniconda/envs/geocube/lib/python3.6/site-packages/geopandas/array.py in fillna(self, value, method, limit)
831 elif not isinstance(value, BaseGeometry):
832 raise NotImplementedError(
--> 833 "fillna currently only supports filling with a scalar geometry"
834 )
835
NotImplementedError: fillna currently only supports filling with a scalar geometry
Is this expected? Future plans?
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Pandas fillna() method not filling all missing values
when fillna , you probably want a method, like fill using previous/next value, mean of column etc, what we can do is like...
Read more >pandas.Series.fillna — pandas 1.5.2 documentation
Fill NA /NaN values using the specified method. Parameters. valuescalar, dict, Series, or DataFrame. Value to use to fill holes (e.g. 0), ...
Read more >History — arosics 1.7.8 documentation - GFZ
Fixed issue #32 (NotImplementedError: fillna currently only supports filling with a scalar geometry). Added pandas to requirements. Changed badge target.
Read more >Fill missing values - MATLAB fillmissing - MathWorks
If A is a timetable, then only table values are filled. If the associated vector of row times contains a NaT or NaN...
Read more >Changelog — GeoPandas 0.12.2+0.gefcb367.dirty ...
Version 0.6.3 (February 6, 2020)#. Small bug-fix release: Compatibility with Shapely 1.7 and pandas 1.0 (#1244). Fix GeoDataFrame.fillna to accept ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bnaul I made a quick 0.6.3 release with your fillna fix included (PyPI wheels are up, conda-forge should be ready by tomorrow as well)
@bnaul That is good. Could you try a PR to check the behaviour? I’d be happy with this change.