コード例 #1
0
 def test_make_zero_ser(self):
     data = SYNTH.make_pd(ZERO_D_ARRAY)
     assert isinstance(data, pd.Series)
     assert data.index is not None
     assert not np.array_equal(data.index, [0])
     assert data.index.name is not None
     assert data.name is not None
コード例 #2
0
 def test_make_df(self):
     data = SYNTH.make_pd(TWO_D_ARRAY)
     assert isinstance(data, pd.DataFrame)
     assert data.index is not None
     assert not np.array_equal(data.index, [0, 1])
     assert data.columns is not None
     assert not np.array_equal(data.columns, [0, 1])
     assert data.index.name is not None
     assert data.columns.name is not None