6/15/17 Notes (fixing case sensitivity)
Trying to fix the “Full Name” search
- I double checked the heading that appeared to make sure it had a “Full Name” heading, and it does.
- I tried “ella hubbell” instead of “Ella Hubbell” this had no effect
- I tried adding this command so that the file had its own “Full Name” collumn.
- Studentinfo14['Full Name']= Studentinfo14['First Name'] + ' ' + Studentinfo14['Last Name']
- This did not work
- Tried renaming the column to FULL NAME so that the code wasn’t searching through multiple columns named “Full Name” this did not work
- I tried the name of someone who was in 14-15, this did not work.
- I checked the “Confidence and Self-Efficiancy 14” survey file to see if Ella Hubbell responded to the questions, and her name was not in this file.
- I looked at the “Full Name” column I made in the “Studentinfo14” file and searched the name “Dawn Dinh” because her name was in the column. This worked!
- However, only six names appear which is a problem…
- When I made the “ConAtt” file display full names, only 14 names appear. This is more than the Studentinfo14 names, but less than the number of names that appear for the careers survey names, which is less than the number of names that appear for attendance.
- I am going to try to add a command to the code to eliminate case sensitivity so that “ella Hubbell” would be the same as “Ella Hubbell” when the files are being merged and see if this makes it so that more names appear.
- I tried this command that worked for Tori
- Attendance_['Full Name']=map(lambda x: x.upper(), Attendance_['Full Name'])
- “Attendance_” was “not defined” so I deleted the “_” now I’m getting an error that says “AttributeError: 'float' object has no attribute 'upper”
- I put this code after I set up the “Full Name” column, I wonder if I should put it after I merge two files together instead. This did not work.
Comments
Post a Comment