Get startedGet started for free

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.

This exercise is part of the course

Introduction to Polars

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Extract the brand, model and price columns
print(ev_df____)
Edit and Run Code