列を選択する2つの方法
今回も、4人の容疑者のクレジットカード記録を credit_records というDataFrameに読み込んであります。彼らが購入した品目を確認してみましょう。
pandas モジュールはエイリアス pd でインポート済みです。
DataFrame credit_records もすでに用意されています。
この演習はコースの一部です
Pythonで始めるデータサイエンス入門
実践的なインタラクティブ演習
このサンプルコードを完成させて、この演習に挑戦してみましょう。
# Select the column item from credit_records
# Use brackets and string notation
items = ____
# Display the results
print(items)