Session Ready
Exercise

Numeric data or ... ?

In this exercise, and throughout this chapter, you'll be working with bicycle ride sharing data in San Francisco called ride_sharing. It contains information on the start and end stations, the trip duration, and some user information for a bike sharing service.

The user_type column contains information on whether a user is taking a free ride and takes on the following values:

  • 1 for free riders.
  • 2 for pay per ride.
  • 3 for monthly subscribers.

In this instance, you will print the information of ride_sharing using .info() and see a firsthand example of how an incorrect data type can flaw your analysis of the dataset. The pandas package is imported as pd.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Print the information of ride_sharing.
  • Use .describe() to print the summary statistics of the user_type column from ride_sharing.