datafest competition 2019
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.5 KiB

  1. import pandas as pd
  2. csv = pd.read_csv("data/rpe.csv")
  3. training = csv["Training"].unique()
  4. session = csv["SessionType"].unique()
  5. boms = csv["BestOutOfMyself"].unique()
  6. print(training)
  7. print(session)
  8. print(boms)
  9. # csv["SessionTypeMobilityRecovery"] = csv["SessionType"]
  10. # csv.SessionTypeMobilityRecovery[csv.SessionType == 'Mobility/Recovery'] = 1
  11. # csv.SessionTypeMobilityRecovery[csv.SessionType != 'Mobility/Recovery'] = 0
  12. #
  13. # csv["SessionTypeGame"] = csv["SessionTypeMobilityRecovery"]
  14. # csv.SessionTypeGame[csv.SessionType == 'Game'] = 1
  15. # csv.SessionTypeGame[csv.SessionType != 'Game'] = 0
  16. #
  17. # csv["SessionTypeSkills"] = csv["SessionTypeMobilityRecovery"]
  18. # csv.SessionTypeSkills[csv.SessionType == 'Skills'] = 1
  19. # csv.SessionTypeSkills[csv.SessionType != 'Skills'] = 0
  20. #
  21. # csv["SessionTypeConditioning"] = csv["SessionTypeMobilityRecovery"]
  22. # csv.SessionTypeConditioning[csv.SessionType == 'Conditioning'] = 1
  23. # csv.SessionTypeConditioning[csv.SessionType != 'Conditioning'] = 0
  24. #
  25. # csv["SessionTypeStrength"] = csv["SessionTypeMobilityRecovery"]
  26. # csv.SessionTypeStrength[csv.SessionType == 'Strength'] = 1
  27. # csv.SessionTypeStrength[csv.SessionType != 'Strength'] = 0
  28. #
  29. # csv["SessionTypeCombat"] = csv["SessionTypeMobilityRecovery"]
  30. # csv.SessionTypeCombat[csv.SessionType == 'Combat'] = 1
  31. # csv.SessionTypeCombat[csv.SessionType != 'Combat'] = 0
  32. #
  33. # csv["SessionTypeSpeed"] = csv["SessionTypeMobilityRecovery"]
  34. # csv.SessionTypeSpeed[csv.SessionType == 'Speed'] = 1
  35. # csv.SessionTypeSpeed[csv.SessionType != 'Speed'] = 0
  36. print(csv.head())