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.
This exercise is part of the course
Machine Learning for Marketing in Python
Exercise 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.
Hands-on interactive exercise
Have a go at this exercise by completing this sample 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.___())