Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

let’s load the cars dataset

Explore the shape and first few lines of the dataset

Compute the mean and std for numeric columns

Put the name of the columns labels in lower case

Loading...

Create a column “consommation (l/km)”, and remove the column miles_per_gallon

Tip: miles_per_gallon/235.2 = litre_per_100km

Create a columns “poids (kg)” and remove the column weight_in_lbs

Tip: 1lb = 0.454 kg

Count the number of different origin

Check the memory usage of the origin column, convert the column ‘origin’ to category, check the new memory usage*