From 4769580bbc5db7bed62c7a6a308cbe1fbb64c8d1 Mon Sep 17 00:00:00 2001 From: PerryXDeng Date: Fri, 29 Mar 2019 21:43:28 -0400 Subject: [PATCH] saving progress on rpe processing --- data_preparation/rpe_processing.py | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 data_preparation/rpe_processing.py diff --git a/data_preparation/rpe_processing.py b/data_preparation/rpe_processing.py new file mode 100644 index 0000000..fb02512 --- /dev/null +++ b/data_preparation/rpe_processing.py @@ -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())