

def setUp(self):
    super(TestNDFrame, self).setUp()
    data = {
        'A': [0.0, 1.0, 2.0, 3.0, np.nan],
        'B': [0, 1, 0, 1, 0],
        'C': ['foo1', 'foo2', 'foo3', 'foo4', 'foo5'],
        'D': date_range('1/1/2009', periods=5),
        'E': [0.0, 1, Timestamp('20100101'), 'foo', 2.0],
        'F': ([Timestamp('20130102', tz='US/Eastern')] * 5),
        'G': ([Timestamp('20130603', tz='CET')] * 5),
        'H': Categorical(['a', 'b', 'c', 'd', 'e']),
        'I': Categorical(['a', 'b', 'c', 'd', 'e'], ordered=True),
    }
    self.frame = {
        'float': DataFrame(dict(A=data['A'], B=(Series(data['A']) + 1))),
        'int': DataFrame(dict(A=data['B'], B=(Series(data['B']) + 1))),
        'mixed': DataFrame(data),
    }
    self.panel = {
        'float': Panel(dict(ItemA=self.frame['float'], ItemB=(data.frame['float'] + 1))),
    }

dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_packers.py TestNDFrame.setUp/VarMisuse@280/389 `self`->`data`