If this is a pandas DataFrame:

`velocity_mean = df.velocity.mean()

df.apply(lambda x: x - )
`