def z_score(df, column, mean, std):
return # ?????
mean = history_df['distances'].mean()
std = history_df['distances'].std()
training_df['distances_normal'] = z_score(training_df, 'distances', mean, std)
testing_df['distances_normal'] = z_score(testing_df, 'distances', mean, std)
hello, any suggestions on what the z_score function should look like (after return) so that further down when I create the new columns 'distances_normal' to the training and testing dataframes based on the history dataframe column 'distances' the values are normalized?
thx in advance