Commit 728a2ace authored by kaghog's avatar kaghog
Browse files

Tag person with saturday and sunday trips

parent 4a98e48d
Pipeline #104312 failed with stage
......@@ -57,6 +57,12 @@ def execute(context):
df_mz_persons.loc[df_mz_persons["tag"] == 6, "weekend"] = True
df_mz_persons.loc[df_mz_persons["tag"] == 7, "weekend"] = True
# Detailed weekend observations
df_mz_persons["saturday"] = False
df_mz_persons.loc[df_mz_persons["tag"] == 6, "saturday"] = True
df_mz_persons["sunday"] = False
df_mz_persons.loc[df_mz_persons["tag"] == 7, "sunday"] = True
# Here we extract a bit more than Kirill, but most likely it will be useful later
df_mz_persons["subscriptions_ga"] = df_mz_persons["f41610a"] == 1
......@@ -117,7 +123,7 @@ def execute(context):
"subscriptions_verbund_class",
"subscriptions_strecke_class",
"age_class", "person_weight",
"weekend", "date"
"weekend", "saturday", "sunday", "date"
]]
# Merge in the other data sets
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment