Aan de slagGa gratis aan de slag

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.

Deze oefening maakt deel uit van de cursus

Customer Analytics and A/B Testing in Python

Cursus bekijken

Oefeninstructies

  • Import pandas as pd.
  • Load the file 'customer_data.csv' as a DataFrame called customer_data.
  • Load the file 'inapp_purchases.csv' as a DataFrame called app_purchases.
  • Print the columns of customer_data and then app_purchases using their .columns attribute.

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# 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.____)
Code bewerken en uitvoeren