I want to create a dual axis chart showing monthly user trips with the two secondary y axis showing average duration per month for each user type.
ds = {"duration":['1.02', '1.03', '1.08', '1.07', '2.02', '1,01'],
"start_time": ['2019-01-01 00:07:10.576', '2019-01-31 23:48:50.0920', '2019-01-01 00:11:03.441', '2019-01-31 20:58:33.8860', '2019-01-01 00:11:03.441', '2019-01-01 00:14:48.398'],
"user": [0, 1, 1, 0, 1, 0]
}
df = pd.DataFrame(ds)
Above is a sample of my dataframe with start_time in datetime format, duration in float, and user is a dummy variable where 0 represents "customer" and 1 represents "subscriber"