Which Pandas method is used to select a subset of rows and columns from a…

PYQ KVS TGT/PGT 2026

Which Pandas method is used to select a subset of rows and columns from a DataFrame based on their integer-based position (index location) rather than labels?

  1. A.

    .loc[]

  2. B.

    .at[]

  3. C.

    .iloc[]

  4. D.

    .ix[]

Attempted by 478 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…