def test_split_delimeter2(): testing_df = df.copy() testing_df['col4'] = pd.Series(['hello.world', 'world.hello', 'p.4q', 'r', 's']) result_df = testing_df.copy() clean.splitColumn(testing_df, 3, '-', regex=False) result_df['col4_0'] = result_df['col4'] assert (((testing_df.fillna(0) == result_df.fillna(0)).all()).all()) == True
def test_split_delimeter4(): testing_df = df.copy() with pytest.raises(Exception): clean.splitColumn(testing_df, 7, '.')