This repository contains some f*ckin' examples of how to use SQL with python and jupyter notebook
-
CrimesRatesForPubsAroundGoldsmiths.ipynb The notebook is used to compute the crime rates around pubs using data from: https://data.police.uk/ and https://www.getthedata.com/open-pubs/london. The muthaf*ckin' map with the results can be found here: https://www.google.com/maps/d/u/0/edit?hl=it&hl=it&mid=19uIqMzanBu69XsLNsjlJsO4zopMML2uo&ll=51.473514041170944%2C-0.03435662565607345&z=13
-
ScrapingCocktailDatasets.ipynb The bad-ass notebook is used to pre-process the data from https://www.thecocktaildb.com/api.php. The JSON file with all the data has been downloaded from https://github.com/VincentRbbmnd/cocktail-scraper
-
Let me tell you somethin': TemplateToRunQuery.ipynb The notebook is a bad-ass template used to query an RDS instance on Amazon (is no longer available)
-
data It is a folder with all the data, and the f*ckin' backup of the database, that can be imported in PostgresSQL
-
SQLPrimer.pdf It is a muthaf*ckin' presentation used to explain SQL operators like join, cartesian product, group by, having, select * from * where *. Some muthaf*ckin' examples have been taken from http://web.stanford.edu/class/cs145/