First, I calculated the number of rides at morning and the total number of rides a whole day based on different genders using following codes as in Fig. 6(same as men):
counts_w = data.date[data.gender == 2].groupby([data.date.dt.hour]).count()
norm_w = counts_w.sum()
w_morning = counts_w.loc[5:12].sum()