Comece agoraComece grátis

Transforming Data

You are asked to provide an analysis of the range of the electric vehicles for a client in the United States. However, the range data is given in kilometers and you are asked to convert this to range in miles.

Este exercicio faz parte do curso

Introduction to Polars

Ver curso

exercicio interativo prático

Tente este exercicio completando este código de exemplo.

# There are 1.609 kilometers in a mile
MILES_TO_KILOMETERS = 1.609

# Select the columns with range converted to miles
range_df = ev_df.select(____, ____, ____ / MILES_TO_KILOMETERS)

print(range_df)
Editar e Executar Código