BUG: assert_frame_equals
fails when MultiIndex
elements are None
#54521
Labels
Bug
Missing-data
np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
MultiIndex
Testing
pandas testing functions or related to the test suite
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
This regards
assert_frame_equal
as part of a test suite.The first problem with regards to testing
gf
is that I cannot create aMultiIndex
and instantiate itsdtypes
directly.But I can manipulate it like this:
There is a NA check for
name
but apparently it doesn't nest within the tuple so that this fails.Expected Behavior
Should assert
True
. Na nest should be checked and works fine.Installed Versions
2.0.3
The text was updated successfully, but these errors were encountered: