A common task in data cleaning is managing "NaN" (Not a number) values. Which…

PYQ KVS TGT/PGT 2026

A common task in data cleaning is managing "NaN" (Not a number) values. Which Pandas function allows you to replace all missing values in a DataFrame with a specific value, such as 0?

  1. A.

    df.dropna()

  2. B.

    df.isna()

  3. C.

    df.fillna()

  4. D.

    df.replace_nan()

Attempted by 383 students.

Sign up free to check your answer

Sign up free

Explore the full course: Kvs Nvs Tier 2 Computer Science

Loading lesson…