Browse Source

saving progress on rpe processing

master
PerryXDeng 5 years ago
parent
commit
4769580bbc
1 changed files with 40 additions and 0 deletions
  1. +40
    -0
      data_preparation/rpe_processing.py

+ 40
- 0
data_preparation/rpe_processing.py View File

@ -0,0 +1,40 @@
import pandas as pd
csv = pd.read_csv("data/rpe.csv")
training = csv["Training"].unique()
session = csv["SessionType"].unique()
boms = csv["BestOutOfMyself"].unique()
print(training)
print(session)
print(boms)
# csv["SessionTypeMobilityRecovery"] = csv["SessionType"]
# csv.SessionTypeMobilityRecovery[csv.SessionType == 'Mobility/Recovery'] = 1
# csv.SessionTypeMobilityRecovery[csv.SessionType != 'Mobility/Recovery'] = 0
#
# csv["SessionTypeGame"] = csv["SessionTypeMobilityRecovery"]
# csv.SessionTypeGame[csv.SessionType == 'Game'] = 1
# csv.SessionTypeGame[csv.SessionType != 'Game'] = 0
#
# csv["SessionTypeSkills"] = csv["SessionTypeMobilityRecovery"]
# csv.SessionTypeSkills[csv.SessionType == 'Skills'] = 1
# csv.SessionTypeSkills[csv.SessionType != 'Skills'] = 0
#
# csv["SessionTypeConditioning"] = csv["SessionTypeMobilityRecovery"]
# csv.SessionTypeConditioning[csv.SessionType == 'Conditioning'] = 1
# csv.SessionTypeConditioning[csv.SessionType != 'Conditioning'] = 0
#
# csv["SessionTypeStrength"] = csv["SessionTypeMobilityRecovery"]
# csv.SessionTypeStrength[csv.SessionType == 'Strength'] = 1
# csv.SessionTypeStrength[csv.SessionType != 'Strength'] = 0
#
# csv["SessionTypeCombat"] = csv["SessionTypeMobilityRecovery"]
# csv.SessionTypeCombat[csv.SessionType == 'Combat'] = 1
# csv.SessionTypeCombat[csv.SessionType != 'Combat'] = 0
#
# csv["SessionTypeSpeed"] = csv["SessionTypeMobilityRecovery"]
# csv.SessionTypeSpeed[csv.SessionType == 'Speed'] = 1
# csv.SessionTypeSpeed[csv.SessionType != 'Speed'] = 0
print(csv.head())

Loading…
Cancel
Save