Skip to main content
Post Undeleted by Guilherme Marques
added 157 characters in body
Source Link

If this is a pandas DataFrame:

`velocity_mean = df.velocity.mean()vel_mean = df.velocity.mean() vel_std = df.velocity.std() df = df.apply(lambda x: (x - vel_mean) / vel_std)

df.apply(lambda xIn case it is a numpy array: x - ) `

data = (data - np.mean(data, axis=0)[0]) / np.std(data, axis=0)[0]

If this is a pandas DataFrame:

`velocity_mean = df.velocity.mean()

df.apply(lambda x: x - ) `

If this is a pandas DataFrame:

vel_mean = df.velocity.mean() vel_std = df.velocity.std() df = df.apply(lambda x: (x - vel_mean) / vel_std)

In case it is a numpy array:

data = (data - np.mean(data, axis=0)[0]) / np.std(data, axis=0)[0]

Post Deleted by Guilherme Marques
Source Link

If this is a pandas DataFrame:

`velocity_mean = df.velocity.mean()

df.apply(lambda x: x - ) `