I would probably use `assert_index_equal`, because then it prints the two indices which makes it easier to debug.

In general, if you care about metadata (i.e., `names`), you can use `identical()` whereas `equals()` checks for equality of levels and labels.