BUG: Multiplying large Series by <NA> gives "unknown type object" #33701
Labels
good first issue
NA - MaskedArrays
Related to pd.NA and nullable extension arrays
Needs Tests
Unit test(s) needed to prevent regressions
Numeric Operations
Arithmetic, Comparison, and Logical operations
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.
In short, with Pandas 1.0.3 on Python 3.7.6, when I multiply
<NA>
(the Int64 null type) by a Series with length over 10,000, I getValueError: unknown type object
. Things work as expected when the length is less than or equal to 10,000.Code Sample, a copy-pastable example
Actual output
Problem description
I do not expect to see different behavior depending on whether or not the length of the data is greater than 10000.
Expected Output
Output of
pd.show_versions()
In [2]: pd.show_versions()
INSTALLED VERSIONS
commit : None
python : 3.7.6.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-1065-aws
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : de_DE.UTF-8
LANG : de_DE.UTF-8
LOCALE : de_DE.UTF-8
pandas : 1.0.3
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 46.0.0.post20200311
Cython : 0.29.15
pytest : 5.4.1
hypothesis : None
sphinx : 3.0.1
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.0
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : 7.13.0
pandas_datareader: None
bs4 : 4.8.2
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : 4.5.0
matplotlib : 3.1.3
numexpr : 2.7.1
odfpy : None
openpyxl : 3.0.3
pandas_gbq : None
pyarrow : None
pytables : None
pytest : 5.4.1
pyxlsb : None
s3fs : None
scipy : 1.4.1
sqlalchemy : 1.3.15
tables : None
tabulate : None
xarray : 0.15.1
xlrd : 1.2.0
xlwt : None
xlsxwriter : None
numba : 0.48.0
The text was updated successfully, but these errors were encountered: