Skip to content

Instantly share code, notes, and snippets.

@joseberlines
Created February 21, 2021 23:13
Show Gist options
  • Select an option

  • Save joseberlines/d351f6fdd85532b69d684db3be393e36 to your computer and use it in GitHub Desktop.

Select an option

Save joseberlines/d351f6fdd85532b69d684db3be393e36 to your computer and use it in GitHub Desktop.
stations_df['score'] = stations_df['passengers'].apply(lambda x: (x-stations_df['passengers'].min())/(stations_df['passengers'].max()-stations_df['passengers'].min()))
stations_df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment