Skip to content

Instantly share code, notes, and snippets.

@cuckookernel
Created July 16, 2018 14:10
Show Gist options
  • Save cuckookernel/53946d35cde45ff5cccb5c3231fd727b to your computer and use it in GitHub Desktop.
Save cuckookernel/53946d35cde45ff5cccb5c3231fd727b to your computer and use it in GitHub Desktop.
import turicreate as tc
checkins = ( tc.SFrame.read_csv( 'Gowalla_totalCheckins.txt',
delimiter='\t', header=False )
.rename( {'X1': 'user_id', 'X2' : 'checkin_ts',
'X3': 'lat', 'X4' : 'lon',
'X5': 'location_id'} )
[["user_id", "location_id", "checkin_ts"]] )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment