-
-
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: Regression in assert_frame_equal
when using check_like
#39739
Comments
This was caused by b867e21 |
|
Apologies if I have broken something here.
I haven't actually checked this to confirm that it works yet, but if you want to ignore index type, could you use |
Sorry it has taken me so long to come back on this, but I have just verified that my suggestion above (check_index_type=False) does indeed fix the problem:
Obviously others may differ, but it seems to me that the current behaviour in |
Thanks for digging into this @amilbourne, I agree with your assessment. Do @galipremsagar @phofl @simonjayhawkins agree? |
Agree |
to ensure the behavior does not change again, we should have a test to catch this. |
put something up |
Phew! |
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.
Code Sample, a copy-pastable example
In
1.2.1
:In
1.1.5
:Problem description
Upto
1.1.5
, bothdf_one
anddf_two
were considered to be same dataframe whencheck_like=True
, but in latest pandas this is broken.Expected Output
Output of
pd.show_versions()
INSTALLED VERSIONS
commit : 9d598a5
python : 3.7.9.final.0
python-bits : 64
OS : Linux
OS-release : 4.15.0-76-generic
Version : #86-Ubuntu SMP Fri Jan 17 17:24:28 UTC 2020
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.2.1
numpy : 1.19.5
pytz : 2021.1
dateutil : 2.8.1
pip : 21.0.1
setuptools : 49.6.0.post20210108
Cython : 0.29.21
pytest : 6.2.2
hypothesis : 6.1.1
sphinx : 3.4.3
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.3
IPython : 7.20.0
pandas_datareader: None
bs4 : None
bottleneck : None
fsspec : 0.8.5
fastparquet : None
gcsfs : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 1.0.1
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.52.0
The text was updated successfully, but these errors were encountered: