Skip to content

Instantly share code, notes, and snippets.

View jhconning's full-sized avatar

Jonathan Conning jhconning

View GitHub Profile
#df is the original dataframe with a list of names you want to prevail
#dfF is the dataframe with Names that can be matched only fuzzily
#For each Name in df the code finds the most likely match from the dfF and saves that name
#We then merge on that new key 'Name_r'
#some code is to cover the event of no match (perhaps b/c df has names not in dfF)
# From http://stackoverflow.com/questions/13636848/is-it-possible-to-do-fuzzy-match-merge-with-python-pandas
# http://stackoverflow.com/questions/36557722/python-pandas-difflib-throws-list-index-out-of-range-error
@jhconning
jhconning / 0_reuse_code.js
Created December 16, 2015 13:35
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jhconning
jhconning / BokehSliderLines.ipynb
Last active October 8, 2015 02:50
Very simple example of an ipywidgets slider working with a Bokeh plot
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jhconning
jhconning / Interactive Ricardo Viner3.ipynb
Last active October 8, 2015 03:02
Interactive Ricardo Viner with Bokeh
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.