6/14/17 Notes
I want to write a code so that I can search the name of a class, and everyone who took that class will appear. Originally I assumed I could use the same command I did to search for a specific name, and then edit that so the code would search for a specific person. However, looking at the format of the file, there are four different columns that contain class information, while there’s only one column with name information. I am going to see if I can search for a specific class in the “Am S1” column first to see if everything runs smoothly, and if that works, I will look for ways to search for an ID word in multiple columns.
- I tried this command. Only the column headings are appearing and nothing else
- Studentinfo14[Studentinfo14['Am S1'].str.contains('Discovery', na=False)]
- I changed “Studentinfo14” to attendance so that the code would look for this information in the attendance file instead of the master file. This worked, but using this file means that I can’t see the survey results so I need to find a way for this to work using the master file.
- I tried “Pm S1” instead, this did not work
- I looked back at my code and found that looking for a specific name using the master file also only displayed the column headings, so there must be an issue with this file.
Comments
Post a Comment