engarde-dev / engarde

A library for defensive data analysis.
MIT License
501 stars 40 forks source link

Add functionality to compare pd.Series and pd.Index datatypes #53

Closed alysivji closed 5 years ago

alysivji commented 6 years ago

The is_same_as function is a wrapper around pandas' assert_frame_equal method for DataFrames. Added functionality so pd.Index and pd.Series objects can be compared via assert_index_equal and assert_series_equal respectively.