Skip to content

Commit

Permalink
fix helper functions for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
steinnymir committed Oct 9, 2023
1 parent edcab8b commit bdcbacc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
df = pd.DataFrame(np.random.randn(N_PTS, len(cols)), columns=cols)

def square(df,col):
df[f'col_squared'] = df[col] ** 2
df[f'{col}_squared'] = df[col] ** 2
return df

def add(df,col,value):
df[f'col_added'] = df[col] + value
df[f'{col}_added'] = df[col] + value
return df

def test_pp_decorator():
Expand Down

0 comments on commit bdcbacc

Please sign in to comment.