Skip to content

Instantly share code, notes, and snippets.

@davideanastasia
Created February 2, 2019 12:23

Revisions

  1. davideanastasia created this gist Feb 2, 2019.
    2 changes: 2 additions & 0 deletions lookalike_002.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    taxi_data['flag'] = 1
    taxi_data_pivot = taxi_data.pivot(index='taxi_id', columns='geohash', values='flag').fillna(0.0)