This file contains hidden or 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
| #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 |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder