Aggregating a column
You are asked to provide some details for a report on developments in the electric vehicle market in terms of how expensive they can be and how far they can travel.
This exercise is part of the course
Introduction to Polars
Exercise instructions
- Create a one row DataFrame with the maximum value of the
"price"
column and the mean of the"range"
column.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Print the max of the price and mean of the range
print(ev_df.select(____))