6/22/17 Notes
- I resaved the google master file to my computer so that the code has the updated version of the file
- I got an error saying the file didn’t exist so I opened the file on my computer and saved it again, making sure it was saved as a csv file. This did not work
- I copied and pasted the file name into the code to make sure it was correct. This did not work.
- I renamed the file to “Attendance 2003-2017” (I’m wondering if the parentheses in the original title messed it up). This did not work
- I restarted Kernel and cleared all outputs. This did not work.
- I deleted all the versions of this file I had, and redownloaded it. This worked!
- Working on being able to search names of classes in all the columns
- Tried using this command:
- “Studentinfo14[Studentinfo14['Pm S1'+'Am S1'].str.contains('Check', na=False)]”
- I searched “check” because I know that it appears in both columns. This did not work.
- I am going to combine all the class columns into one column using the same command I used to make the full name column.
- I successfully combine the Am and Pm columns.
- I am going to try to combined all the class columns at once so that I don’t have to keep repeating the command.
- Here is the command I typed:
- Studentinfo14['Class']= Studentinfo14['Am S1'] + ' ' + Studentinfo14['Pm S1'] + ' ' + Studentinfo14['Am S2']
- This worked!
- I added all the other column names in a similar fashion, and this worked.
- Now I can search for classes in all columns.
- However, now the data for the students’ responses is appearing as “Nan”
- I added the command that enables the code to show all the rows and columns to this cell. This did not work
- I am going through my code to see which surveys aren’t appearing because some surveys display the actual numbers and some only display “Nan”
- That made no sense so I cleared my Kernels and tried again. Now the numbers are being displayed but not the column names
- I added a cell before I merged all the files and had it display the individual files so I could see which ones displayed numbers and which ones displayed “Nan”
- Confidence: Displays numbers
- Attitudes: Displays numbers and short answers
- Career: Displays numbers
- Semantics: Displays numbers
- I checked “Bryanna Bascombe” (someone whose name was in the survey files) and her data appeared
- I searched “Reality” in the cell that searches specific classes (I chose this class because Bryanna took it and I know she took the surveys). This worked
- I’m going to go back and add the column titles for every year and test the other years to make sure everything runs smoothly .
Comments
Post a Comment