Guest User

Untitled

a guest
Dec 11th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. df:
  2. ID sem course
  3. 10 1 "math"
  4. 10 1 "phys"
  5. 10 1 "other"
  6. 10 2 "math"
  7. 10 2 "phys2"
  8. 10 2 "chem"
  9. 11 1 "other"
  10. 11 2 "math"
  11.  
  12. mylist=list(NA)
  13. for in each ID {
  14. for j in each sem{
  15. check the element course=='math'{
  16. insert it into mylist (or do some other stuffs here)
  17. }}}
  18.  
  19. mylist
  20. "math","math", "math"
Add Comment
Please, Sign In to add comment