def test_unicode(self
                     ):  # See GH 6885 - get_dummies chokes on unicode values
        import unicodedata
        e = 'e'
        eacute = unicodedata.lookup('LATIN SMALL LETTER E WITH ACUTE')
        s = [e, eacute, eacute]
        res = get_dummies(s, prefix='letter', sparse=self.sparse)
        exp = DataFrame({'letter_e': {0: 1.0,
                                      1: 0.0,
                                      2: 0.0},
                         u('letter_%s') % eacute: {0: 0.0,
                                                   1: 1.0,
                                                   2: 1.0}})
        assert_frame_equal(res, exp)
dataset/ETHPy150Open pydata/pandas/pandas/tests/test_reshape.py/TestGetDummies.test_unicode/original