Patrick Hoefler
Patrick Hoefler
Independently of this, this is also an issue for cumsum
Yes agreed. We are better off now than before. As mentioned above I am not opposed to avoid casting back. But this is a bit out of scope here, so...
It seems to me, that this is a bug on our side. This was not caused by a change on our side in that interval but by a hypothesis release....
Hi, thanks for your report. Did you check on 1.4.2 and main? Because this works on both for me.
Hmm good point, does not work on 1.4.2, but on main
NA = NA is again NA, this happens on purpose
https://en.m.wikipedia.org/wiki/Three-valued_logic Kleene logic
Works on main ``` df = pd.DataFrame({'A': [0, 1, 2]}, dtype="Int64") df.at[0, 'A'] = pd.NA df['A'].replace(to_replace=1, value=100, inplace=True) ``` returns ``` A 0 1 100 2 2 ```
Sounds good to me too