IniziaInizia gratis

Two methods for selecting columns

Once again, we've loaded the credit card records of our four suspects into a DataFrame called credit_records. Let's examine the items that they've purchased.

The pandas module has been imported under the alias pd. The DataFrame credit_records has already been imported.

Questo esercizio fa parte del corso

Introduction to Data Science in Python

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

# Select the column item from credit_records
# Use brackets and string notation
items = ____

# Display the results
print(items)
Modifica ed esegui il codice