I'm doing research on a recommendation system using the Gowalla dataset. However, the dataset has no location rating so I must generate that data into an implicit rating with a value of '1' for those who have visited the location and '0' for those who have never visited the location. How should I create that matrix with python?