MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Introduction to Polars

Lihat Kursus

Petunjuk latihan

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

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Print the max of the price and mean of the range
print(ev_df.select(____))
Edit dan Jalankan Kode