This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This code released under an MIT license. In notebook form with more explanation: | |
# https://github.com/nikhaldi/covid-notebooks/blob/master/Mobility%20vs%20COVID-19%20growth%20plot.ipynb | |
import numpy as np | |
import pandas as pd | |
us_counties = pd.read_csv( | |
"https://raw.githubusercontent.com/nytimes/covid-19-data/master/us-counties.csv", | |
dtype={"fips": str}, | |
parse_dates=["date"] | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id":"tag:gnip.foursquare.com:2013:checkin/5277ee1311d238dfb8e36484", | |
"postedTime":"2013-11-04T18:57:22+00:00", | |
"verb":"checkin", | |
"actor":{ | |
"objectType":"person", | |
"gender":"female"}, | |
"object":{ | |
"id":"tag:gnip.foursquare.com:2013:venue/4b69feebf964a52098c02be3", | |
"displayName":"The Vitamin Shoppe", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Whether a given string includes any whitespace. | |
def includes_whitespace?(string) | |
not string.match(/\s/).nil? | |
end |