test_aide.equality.assert_series_equal_msg¶
- test_aide.equality.assert_series_equal_msg(actual, expected, msg_tag, print_actual_and_expected=False, **kwargs)[source]¶
Compares actual and expected pandas.Series and asserts equality. Calls pd.testing.assert_series_equal but presents msg_tag, and optionally actual and expected Series, in addition to any other exception info.
- Parameters
actual (pandas Series) – The actual Series.
expected (pandas Series) – The expected Series.
msg_tag (string) – A tag for the assert error message.
print_actual_and_expected (Boolean) – print the actual and expected dataFrame along with error message tag
**kwargs – Keyword args passed to pd.testing.assert_series_equal.