1. 学习
  2. /
  3. 课程
  4. /
  5. Introduction to Data Science in Python

Connected

练习

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.

说明 1 / 共 2 个

undefined XP
  • 1
    • Select the column item from credit_records using brackets and string notation.
  • 2
    • Select the column item from credit_records using dot notation.