The recent Citi Bike data has garnered a lot of attention. Attached you will find a data set of Citibike riders. The challenge is threefold:
1. Calculate the average trip time.
2. Visualize the male - female and subscriber - tourist ridership of the citi bikes over the period of a month.
3. Visualize the citibike usage by gender for a month averaged over a period of 24 hours.
Header of CSV file:
Trip Duration (seconds)Start Time and DateStop Time and DateStart Station idStart Station NameStart Station LatitudeStart Station LongitudeEnd Station idEnd Station NameEnd Station LatitudeEnd Station LongitudeBike IDUser Type (Customer = 24-hour pass or 7-day pass user; Subscriber = Annual Member)Year of BirthGender (0=unknown; 1=male; 2=female)You can use this cheat sheet as a reference guide to complete your python challenge. You are allowed to use google. Use comments to explain what your code is doing.
A screenshot with the output is attached for your reference.
In [ ]: