Comments (6)
I believe this issue existed prior to the deprecation: it was never possible to just .fillna(value=None)
. And doing .fillna(value=None, method="ffill")
would ignore the value
parameter (since forward filling does not utilize a value). When the deprecation is enforced, we can make the value
parameter required (instead of having a default), and then enable users to use .fillna(value=None)
.
from pandas.
Ref: #47639
from pandas.
I believe this issue existed prior to the deprecation: it was never possible to just
.fillna(value=None)
. And doing.fillna(value=None, method="ffill")
would ignore thevalue
parameter (since forward filling does not utilize a value). When the deprecation is enforced, we can make thevalue
parameter required (instead of having a default), and then enable users to use.fillna(value=None)
.
So should we update the docs now to reflect that Series.fillna(value=None)
doesn't work? Because the way it reads now, it appears that it should work. I think that is what led to the confusion of the OP in pandas-dev/pandas-stubs#884
from pandas.
So should we update the docs now to reflect that Series.fillna(value=None) doesn't work?
I would vote no, but not opposed if someone wants to do that. This deficiency in the docs has existed for a long time, and I expect it to work come 3.0, so it doesn't seem worth the effort to change now.
from pandas.
agree with @rhshadrach
from pandas.
I have a PR in the works for enforcing said deprecation, I'll add a test for this and use that PR to close this issue.
from pandas.
Related Issues (20)
- BUG: itemsize wrong for date32[day][pyarrow] dtype? HOT 6
- BUG: Unable to use CustomBusinessDays in a MultiIndex HOT 2
- Potential regression induced by "Cython guard against [c|m|re]alloc failures" HOT 5
- Potential regression induced by "Refactored pandas_timedelta_to_timedeltastruct" HOT 6
- BUG: pandas df.to_markdown() with period at end of field - is not displayed. HOT 2
- BUG: encoding is **silently** ignored for `read_csv` on FileLike objects HOT 2
- BUG: IndexError with pandas.DataFrame.cumsum where dtype=timedelta64[ns] HOT 6
- DOC: Flipped square bracket in pandas.read_fwf documentation HOT 1
- "ValueError: Must have equal len keys and value when setting with an iterable" when updating an object type cell using .loc with a nd.array
- BUG: install pandas on embedded python 3.8 win32 successful, but failed to `import pandas` HOT 6
- BUG: `testing.assert_frame_equal` ignores `check_names=False` HOT 2
- BUG: Wrong kurtosis outcome due to inadequate fix to previous issues HOT 4
- BUG: Unexpected Styler.format behavior HOT 6
- BUILD: import pandas error (C extension: DLL load failed) in Python 2.7.15 HOT 3
- BUG: CONTAINS_OP run on pd.NA results in pd.NAType.__bool__ call HOT 5
- BUG: Nones in pd.concat MultiIndex keys are not accepted in some cases HOT 1
- DOC: DataFrame.reset_index names param can't be a tuple as docs state HOT 6
- BUG: Implement `fillna(..., limit=x)` for EAs
- API: Make `Series.array` a read-only NumpyExtensionEA when applicable HOT 2
- Potential regression induced by "CLN: Enforce deprecation of argmin/max and idxmin/max with NA values" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas.