Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Introduction to Polars

Cursus bekijken

Oefeninstructies

  • Create a one row DataFrame with the maximum value of the "price" column and the mean of the "range" column.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Print the max of the price and mean of the range
print(ev_df.select(____))
Code bewerken en uitvoeren