question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fillna error with 0.6

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:12 (10 by maintainers)

github_iconTop GitHub Comments

5reactions
jorisvandenbosschecommented, Feb 6, 2020

@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)

0reactions
martinfleiscommented, Feb 5, 2020

@bnaul That is good. Could you try a PR to check the behaviour? I’d be happy with this change.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found