What will be the output of the following Python code? import pandas as pd S =…

PYQ KVS TGT/PGT 2023Modified — slightly modified from the official paper; see the solution

What will be the output of the following Python code?

import pandas as pd
S = pd.Series(20, 30)
print(S)
  1. A.

    TypeError

  2. B.

    20 30

  3. C.

    0 20 1 30

  4. D.

    0 1 20 30

Attempted by 1224 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…