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

Connected

Exercise

Subsetting a DataFrame with bracket notation

Your client has requested a focused report showing only key information about each vehicle. You want to extract targeted subsets of the electric vehicle dataset for this analysis.

The dataset is loaded for you in a DataFrame called ev_df.

Instructions 1/2

undefined XP
  • 1
    • Print the "brand", "model" and "price" columns (in that order) using bracket notation.
  • 2
    • Print the last three rows of the "brand" and "price" columns (in that order) from ev_df using only bracket notation.