Loading & examining our data
Let's begin by loading and examining two datasets: one that contains a set of user demographics and the other -- a set of data relating to in-app purchases for our meditation app.
Latihan ini adalah bagian dari kursus
Customer Analytics and A/B Testing in Python
Petunjuk latihan
- Import
pandasaspd. - Load the file
'customer_data.csv'as a DataFrame calledcustomer_data. - Load the file
'inapp_purchases.csv'as a DataFrame calledapp_purchases. - Print the columns of
customer_dataand thenapp_purchasesusing their.columnsattribute.
Latihan interaktif praktis
Cobalah latihan ini dengan menyelesaikan kode contoh berikut.
# Import pandas
____
# Load the customer_data
customer_data = pd.read_csv(____)
# Load the app_purchases
app_purchases = pd.____
# Print the columns of customer data
print(customer_data.____)
# Print the columns of app_purchases
print(app_purchases.____)