Exemplo n.º 1
0
 def test_drop_index_labels(self):
     arr = DataArray(np.random.randn(2, 3), dims=['x', 'y'])
     actual = arr.drop([0, 1], dim='y')
     expected = arr[:, 2:]
     self.assertDataArrayIdentical(expected, actual)