6/19/17 Notes (fixing the amount of names displayed, and searching a specific class)

Still trying to make all the names appear on the master combined file

  • Tried combining Attendance with the Confidence survey data first (making sure Attendance was the left merge), and then adding the other survey data. This did not work.
  • I’m going to add a cell that searches for names after each cell that makes data frames merge, so I can see when Ella Hubbell, and the other names get lost.
    • They are lost after the first merge, so I need to fix the way I merge the cells
  • I reread my code, and the example code on the left merge tutorial, and I realized that I needed to add this command: how='left', to make it a left merge. This worked! Here’s the full command.
    • ConAttSem14 = pd.merge(left=ConAtt14,right=SemanticsS14, how='left', left_on='Full Name', right_on='Full Name')
  • Now the cell that searches class names is also working!
  • Now I’m working on a way to search multiple columns so that I can display the names of people who took a certain class.
  • I tried adding another class in the column header search using this command. This did not work
    • Studentinfo14[Studentinfo14['Am S1','Pm S1'].str.contains('Design', na=False)]
  • I tried putting an “&” in between ‘Am S1’ and ‘Pm S1’ instead of a comma. This did not work.
  • I tried replacing “&” with “|” this did not work
  • Notebook is running painfully slow so I am going to work on the attendance sheet and hopefully Notebook will speed up tomorrow.

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