Investigate the data
Great work so far! Now you know the key techniques to explore and prepare datasets for supervised machine learning models. You will now test your knowledge in practice. In this exercise, you will explore the key characteristics of the telecom churn dataset. You should run each line separately before submitting the assignment so you get valuable information about the dataset. The pandas
module has been loaded for you as pd
.
The raw telecom churn dataset telco_raw
has been loaded for you as a pandas
DataFrame. You can familiarize yourself with the dataset by exploring it in the console.
Cet exercice fait partie du cours
Machine Learning for Marketing in Python
Instructions
- Print the data types of
telco_raw
. - Print the header of
telco_raw
. - Print the number of unique values in each
telco_raw
column.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Print the data types of telco_raw dataset
print(telco_raw.___)
# Print the header of telco_raw dataset
print(telco_raw.___())
# Print the number of unique values in each telco_raw column
print(telco_raw.___())