Weekend days in iPhone data
Closed this issue · 1 comments
bobhaffner commented
Hi Ross,
I enjoyed your blog post on the iphone step data. Good stuff! Hey quick fyi on determining weekend days.
Instead of applying that helper function you could do the following
df_daily['weekend'] = df_daily.index.weekday > 4
Bob
rosskipp commented
Hey Bob,
Glad you enjoyed the post! Thanks for the tip - that looks a lot more elegant than my function 😄
Ross