Session Ready
Exercise

How many joyrides?

Suppose you have a theory that some people take long bike rides before putting their bike back in the same dock. Let's call these rides "joyrides".

You only have data on one bike, so while you can't draw any bigger conclusions, it's certainly worth a look.

Are there many joyrides? How long were they in our data set? Use the median instead of the mean, because we know there are some very long trips in our data set that might skew the answer, and the median is less sensitive to outliers.

Instructions
100 XP
  • Create a Pandas Series which is True when Start station and End station are the same, and assign the result to joyrides.
  • Calculate the median duration of all rides.
  • Calculate the median duration of joyrides.