-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: TypeError: bad operand type for unary -: 'FloatingArray' #38749
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Also: I use ctrl+f in the patch notes and search for |
Even after the `-1 * x` fix, ALE plots looked like straight lines pandas-dev/pandas#38749
@hbaniecki thanks for the report. This was fixed for Integer dtype (#36303), but should clearly also fix it for Float dtype |
Hi all,
I got:
for pandas v 1.2.1 and python v 3.7.9 |
I'll have a look at this one. |
take |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
Should it generate an error?
TypeError: bad operand type for unary -: 'FloatingArray'
Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : 3e89b4c
python : 3.8.5.final.0
python-bits : 64
OS : Windows
OS-release : 10
Version : 10.0.19041
machine : AMD64
processor : Intel64 Family 6 Model 126 Stepping 5, GenuineIntel
byteorder : little
LC_ALL : None
LANG : None
LOCALE : English_Europe.1252
pandas : 1.2.0
numpy : 1.19.3
pytz : 2020.4
dateutil : 2.8.1
pip : 20.2.2
setuptools : 49.2.1
Cython : 0.29.14
pytest : 6.0.1
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.19.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.0
numexpr : 2.7.1
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.13
tables : None
tabulate : 0.8.7
xarray : None
xlrd : 1.2.0
xlwt : None
numba : 0.51.1
The text was updated successfully, but these errors were encountered: