Which function should be used to get first n rows of a dataframe?

PYQ Bihar STET 2025Modified — slightly modified from the official paper; see the solution

Which function should be used to get first n rows of a dataframe?

  1. A.

    print(n)

  2. B.

    head(n)

  3. C.

    get(n)

  4. D.

    call(n)

Attempted by 1558 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bihar Stet Computer Science Complete Course

Loading lesson…