Skip to content

Instantly share code, notes, and snippets.

@davideanastasia
Created February 2, 2019 12:23
Show Gist options
  • Save davideanastasia/3e60d8daa9f652f03903cf4bb7461f4e to your computer and use it in GitHub Desktop.
Save davideanastasia/3e60d8daa9f652f03903cf4bb7461f4e to your computer and use it in GitHub Desktop.
taxi_data['flag'] = 1
taxi_data_pivot = taxi_data.pivot(index='taxi_id', columns='geohash', values='flag').fillna(0.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment