6/30/17 Notes (trying to use strip function to get more names to appear)

Still working on similarity function.

  • I’ve asked around, and tried finding a solution online but I haven’t found anything that will merge sequences depending on the sequence matcher ratio so instead I’m going to try to find a function that will edit a list so that it matches another list, then, after the two lists are matching I’ll merge the files.
  • I asked my friend Brooke Hossley for help and she suggested using a trim function to get rid of the spaces after the names which would definitely help make more names appear.
  • The command is .lstrip() here is what I typed:
    • ConfidenceS14['First Name'].lstrip()
    • This did not work. I got and error that says “'Series' object has no attribute 'lstrip'
    • I googled that error and apparently I need to add “.str” before “.lstrip”
    • This worked! Here is the full command:
    • ConfidenceS14['First Name'].str.lstrip()
  • I’m going to try to search one of the names Torri couldn’t find because of and extra space before and after I add this command to the code to see if it has any effect. (I’m going to use Cierra Black). This did not work.
  • I feel like the strip function should have worked so I’m going to make sure all the name columns in the excel sheet are formatted as “text” and try again. This did not work.
  • Tried typing “lstrip(‘ ‘) this did not work.
  • I read up on it and apparently lstrip takes characters off the beginning of the string so I need to use rstrip. This did not work.

Comments

Popular posts from this blog

6/14/17 Notes

6/06/17 Notes (formatting code and searching for a specific person)

May 22, 2017 -- SienaSemanticsSurvey -- Code Breakdown -- Cell #8