Description
Pandas version checks
-
I have checked that this issue has not already been reported.
-
I have confirmed this bug exists on the latest version of pandas.
-
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
>>> import pandas as pd
>>> pd.__version__
'2.2.0rc0'
>>> left = pd.Series([1, 2, 3])
>>> right = pd.Series(pd.array([1, 2, 3]))
>>> pd.testing.assert_series_equal(left, right, check_dtype=False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/google/home/shobs/code/bigframes/.nox/system_prerelease/lib/python3.11/site-packages/pandas/_testing/asserters.py", line 951, in assert_series_equal
assert_numpy_array_equal(
File "/usr/local/google/home/shobs/code/bigframes/.nox/system_prerelease/lib/python3.11/site-packages/pandas/_testing/asserters.py", line 650, in assert_numpy_array_equal
assert_class_equal(left, right, obj=obj)
File "/usr/local/google/home/shobs/code/bigframes/.nox/system_prerelease/lib/python3.11/site-packages/pandas/_testing/asserters.py", line 381, in assert_class_equal
raise_assert_detail(obj, msg, repr_class(left), repr_class(right))
File "/usr/local/google/home/shobs/code/bigframes/.nox/system_prerelease/lib/python3.11/site-packages/pandas/_testing/asserters.py", line 612, in raise_assert_detail
raise AssertionError(msg)
AssertionError: Series are different
Series classes are different
[left]: ndarray
[right]: IntegerArray
Issue Description
bigframes has prerelease tests that test integration with pandas by installing the latest pandas from conda forge:
pip install --extra-index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple --prefer-binary --pre --upgrade pandas
The tests are failing since yesterday (12/26/2023).
Expected Behavior
Expected behavior is what we have in pandas 2.1.4 or earlier:
>>> import pandas as pd
>>> pd.__version__
'2.1.4'
>>> left = pd.Series([1, 2, 3])
>>> right = pd.Series(pd.array([1, 2, 3]))
>>> pd.testing.assert_series_equal(left, right, check_dtype=False)
>>>
Installed Versions
INSTALLED VERSIONS
commit : d4c8d82
python : 3.11.4.final.0
python-bits : 64
OS : Linux
OS-release : 6.5.13-1rodete1-amd64
Version : #1 SMP PREEMPT_DYNAMIC Debian 6.5.13-1rodete1 (2023-12-06)
machine : x86_64
processor :
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 2.2.0rc0
numpy : 1.26.2
pytz : 2023.3.post1
dateutil : 2.8.2
setuptools : 69.0.2
pip : 23.3.1
Cython : None
pytest : 7.4.3
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 3.1.2
IPython : 8.19.0
pandas_datareader : None
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : None
bottleneck : None
dataframe-api-compat : None
fastparquet : None
fsspec : 2023.6.0
gcsfs : 2023.6.0
matplotlib : None
numba : None
numexpr : None
odfpy : None
openpyxl : 3.1.2
pandas_gbq : 0.20.0
pyarrow : 14.0.2
pyreadstat : None
python-calamine : None
pyxlsb : None
s3fs : None
scipy : 1.11.4
sqlalchemy : 2.0.23
tables : None
tabulate : 0.9.0
xarray : 2023.12.0
xlrd : None
zstandard : None
tzdata : 2023.3
qtpy : None
pyqt5 : None