1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to Polars

Connected

Exercise

Inspect a DataFrame

Before diving into detailed analysis, you want to understand the structure and content of the EV dataset.

The electric vehicle dataset you loaded before is still available as a Polars DataFrame called ev_df.

Instructions 1/4

undefined XP
  • 1
    • Print the number of rows and columns of the DataFrame ev_df.
  • 2
    • Print the list of column names of the DataFrame ev_df.
  • 3
    • Print the column names along with their dtypes.
  • 4
    • Use a single method to get the shape, column names, dtypes and first rows in a vertical format.