

def test_basic(self):
    for n in range(10):
        for (s, i) in self.d.items():
            i_rec = self.encode_decode(i)
            assert_categorical_equal(i, i_rec)

dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_packers.py TestCategorical.test_basic/original