def test_sem(self): df = SpikeGroupedDataFrame(self.x) for axis, ddof in itools.product((0, 1), (0, 1)): s = df.sem(axis=axis, ddof=ddof) self.assertIsInstance(s, Series) self.assertEqual(s.values.size, df.shape[1 - axis])
def test_constructor(self): df0 = SpikeGroupedDataFrame(self.x) df1 = df0._constructor(df0) df2 = df0._constructor(df0.values) df3 = df0._constructor(self.x) for df in (df1, df2, df3): assert_frame_equal(df0, df)