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
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
def test_words(self): assert len(SYNTH.words(10)) == 10
def test_make_pds_same_idx(self): data = SYNTH.make_pds(TWO_D_ARRAY, ONE_D_ARRAY, share_index=True) assert np.array_equal(data[0].index, data[1].index)
def test_make_pds(self): data = SYNTH.make_pds(TWO_D_ARRAY, ONE_D_ARRAY) assert len(data) == 2 assert isinstance(data[0], pd.DataFrame) assert isinstance(data[1], pd.Series)