BaşlayınÜcretsiz Başlayın

Adding a new column

Your clients are concerned that electric vehicles will take hours to fully charge so you want to add a new column that shows how long it takes to fully charge each vehicle in hours. You can do this by dividing the range column (in kilometers) by the charge rate column (in kilometers of range that can be charged per hour).

Bu egzersiz

Introduction to Polars

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Divide range by charge_rate
print(ev_df.with_columns((____/____)))
Kodu Düzenle ve Çalıştır