-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
BUG: pd.testing.assert_series_equal
break in version 2.2.0rc0
#56646
Comments
cc @MarcoGorelli was it intentional that the |
looks intentional - #55934 (comment) |
Hm there are actual use cases for this kind of behaviour if your are dealing with very large numbers and exact precision isn't super important Defaulting check-exact to True seems fine but ignoring other arguments seems suspect We definitely have to document this better if we decide that we want to keep this kind of behaviour |
Yeah, I don't think we should silently ignore here - we should raise if we don't plan on supporting this. |
Are you fine with reverting the change to ignore check_exact/rtol/atol arguments for int dtypes (and just have the default be True for integer dtypes)? I don't think ignoring simplifies the testing code - I haven't worked with the testing code internals before, but I'm pretty sure ints/floats go through the same path in |
to be honest I think the current behaviour is nice, and that inexact checking for integers is a rare-enough use-case that people can just implement it manually (like, no strong opinion though, so long as the integer case defaults to exact checking |
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
Issue Description
bigframes has prerelease tests that test integration with pandas by installing the latest pandas from conda forge:
The tests are failing since yesterday (12/26/2023).
Expected Behavior
With pandas version 2.1.4 it is passing
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
The text was updated successfully, but these errors were encountered: