May 2019
Beginner
170 pages
4h 9m
English
To access the data directly with wget, we just need to provide the URL of the data. In this case, we can directly provide the link to the dataset that was provided earlier:
!wget https://www.dropbox.com/s/0zytrf2ncoquxgq/Foursquare_2014_NYC.zip
Now that we have our data inside the Google Colab environment, we can unzip it:
# let us unzip it!unzip Foursquare_2014_NYC.zip
We will first use pandas to read the CSV file and later convert it to a GeoPandas GeoDataFrame:
col_names = ['UserID', 'VenueID', 'VenueCategoryID', 'VenueCategoryName', 'Latitude', 'Longtitude', 'Timezone', 'UTCtime']nyc = pd.read_csv('Foursquare/dataset_tsmc2014/dataset_TSMC2014_NYC.txt',names=col_names,sep="\t", encoding = "ISO-8859-1" )nyc.head()Read now
Unlock full access