You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IIUC the call to self.putmask (L810 in the linked PR) raises and then the assert not self._can_hold_element(value) (L823) fails?
I think _can_hold_element or something like it will need to be in the EA interface eventually. The same method would also be used for validating a fill_value for e.g. take or fillna or...
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas. ( Version 1.0.4)
I get an AssertionError from the following code:
Code Sample
Problem description
The code does not work on Pandas Version 1.0.4. It throws an exception. However, it works on Pandas Version 1.0.1, and also with dtype="int64.
Expected Output
No crash. function replace() itself does nothing, since there is no "" in the series.
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : None
python : 3.7.0.final.0
python-bits : 64
OS : Windows
OS-release : 10
machine : AMD64
processor : Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.None
pandas : 1.0.4
numpy : 1.18.4
pytz : 2020.1
dateutil : 2.8.1
pip : 19.0.3
setuptools : 40.8.0
Cython : None
pytest : 5.4.2
hypothesis : None
sphinx : 3.0.3
blosc : None
feather : None
xlsxwriter : None
The text was updated successfully, but these errors were encountered: