Skip to content

Instantly share code, notes, and snippets.

View andy-clarke-uofg's full-sized avatar
👋

Andy Clarke andy-clarke-uofg

👋
View GitHub Profile
@andy-clarke-uofg
andy-clarke-uofg / graphext-vaccines-nlp-steps.txt
Created June 8, 2021 17:58
NLP Steps Added to VAERS Study Project
# Configure English as language of text
make_constant(ds["Symptom Description"], {
"value": "en",
"out_type": "category"
}) -> (ds.lang)
# Parse and extract ADJECTIVES from SYMPTOM DESCRIPTION column.
extract_keywords(ds["Symptom Description"], ds.lang, {
"keywords": {
"pos_tags": [
@andy-clarke-uofg
andy-clarke-uofg / customer-segmentation.csv
Created October 27, 2021 08:11
Customer Segmentation Example Dataset
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 29 columns, instead of 27 in line 4.
Recency,MntWines,MntFruits,MntMeatProducts,MntFishProducts,MntSweetProducts,MntGoldProds,NumDealsPurchases,NumWebPurchases,NumCatalogPurchases,NumStorePurchases,NumWebVisitsMonth,Year_Birth,Education,Marital_Status,Income,Kidhome,Teenhome,Dt_Customer,AcceptedCmp3,AcceptedCmp4,AcceptedCmp5,AcceptedCmp1,AcceptedCmp2,Complain,Response,umap_cluster,month_name,weekday_name
58,635,88,546,172,88,88,3,8,10,4,7,1957-01-01T00:00:00Z,Graduation,Single,58138,0,0,2012-09-04T00:00:00Z,false,false,false,false,false,false,true,Cluster 1,January,Tuesday
38,11,1,6,2,1,6,2,1,1,2,5,1954-01-01T00:00:00Z,Graduation,Single,46344,1,1,2014-03-08T00:00:00Z,false,false,false,false,false,false,false,Cluster 12,January,Friday
26,426,49,127,111,21,42,1,8,2,10,4,1965-01-01T00:00:00Z,Graduation,Together,71613,0,0,2013-08-21T00:00:00Z,false,false,false,false,false,false,false,Cluster 2,January,Friday
26,11,4,20,10,3,5,2,2,0,4,6,1984-01-01T00:00:00Z,Graduation,Together,26646,1,0,2014-02-10T00:00:00Z,false,false,false,false,false,false,false,C
@andy-clarke-uofg
andy-clarke-uofg / trustpilot-scraping.ipynb
Last active January 11, 2022 10:20
Notebook for scraping reviews from Trustpilot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andy-clarke-uofg
andy-clarke-uofg / notebook.ipynb
Last active February 2, 2022 15:05
Reads a list of search queries as generated by Google Adwords Keyword Planner and performs a search for each query, returning the top 10 URLs for each query.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andy-clarke-uofg
andy-clarke-uofg / random-brazil-coordinates.csv
Created April 14, 2022 12:50
Randomly Generated Coordinates in Brazil
We can't make this file beautiful and searchable because it's too large.
lng,lat
-53.64057227283197,-15.150617321621077
-42.99421760836617,-11.145332942844876
-44.41791507114796,-8.157790364362803
-43.66038973901276,-21.148947704964765
-50.294873612911196,-7.517881971758156
-39.23700952309843,-9.933767804515153
-56.39064428015981,-4.383264074730363
-45.240887220743545,-13.103282452658972
-42.645435327462764,-21.757497469260148
lng lat
-74.1179903701844 4.75055095371542
-74.1179903701844 4.75055095371542
-74.1179903701844 4.75055095371542
-74.1179903701844 4.75055095371542
-74.1179903701844 4.75055095371542
-46.632005 -23.519901
-46.725853 -23.548752
-46.615347 -23.650206
-46.508786 -23.482543