Skip to content

Commit ad9850b

Browse files
author
Justine Wezenaar
committed
add test_assert_frame_equal_nested_df_na
1 parent 10102e6 commit ad9850b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/tests/util/test_assert_frame_equal.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,3 +413,11 @@ def test_datetimelike_compat_deprecated():
413413
tm.assert_series_equal(df["a"], df["a"], check_datetimelike_compat=True)
414414
with tm.assert_produces_warning(Pandas4Warning, match=msg):
415415
tm.assert_series_equal(df["a"], df["a"], check_datetimelike_compat=False)
416+
417+
418+
def test_assert_frame_equal_nested_df_na():
419+
# GH#43022
420+
inner = DataFrame({"a": [1, pd.NA]})
421+
df1 = DataFrame({"df": [inner]})
422+
df2 = DataFrame({"df": [inner]})
423+
tm.assert_frame_equal(df1, df2)

0 commit comments

Comments
 (0)