AI & Machine Learning クイズ: Pandas DataFrames

This pandas quiz covers the DataFrame basics you use before any analysis or model. You will predict the result of selecting columns, filtering rows, sorting and using loc and iloc, plus two classic errors.

やさしい 10問 約5分 合格ライン 80%

モードを選ぶ

ゲストとしてプレイ中です。ログインすると XP と連続記録が保存されます。

例題

第1問 / 全10問

What does this print?

import pandas as pd
df = pd.DataFrame({"name": ["Ann", "Bob", "Cy"], "age": [31, 25, 40]})
print(df.shape)
答えを見る

C. (3, 2) shape is (rows, columns). There are 3 people (rows) and 2 columns, so it is (3, 2).

このクイズの内容

  • shape, columns and selecting a column
  • Boolean filtering and combining conditions with &
  • loc (labels) vs iloc (positions)
  • Sorting with sort_values()
  • Series vs DataFrame results

よくある質問

アカウントは必要ですか?

いいえ、誰でも遊べます。ログインすると XP、連続記録、バッジ、履歴が保存されます。

何度でも挑戦できますか?

はい。ベストスコアが記録され、問題と選択肢は毎回シャッフルされます。