I wish assert_series_equal
would contain the same check_like
functionality as assert_frame_equal
.
The solution should be the same as assert_frame_equal
.
The change would be fully backward compatible (default value False
).
I currently use assert_index_equal
with check_order=False
and use assert_series_equal
with the reindexed Series.
# the following should not raise an AssertionError: assert_series_equal( pd.Series([1, 2, 3], index=["a", "b", "c"]), pd.Series([3, 2, 1], index=["c", "b", "a"]), check_like=True, )
Note: If check_index is False then check_like must be False.
I'll create a PR in a bit.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4