What information does df.info() provide about a DataFrame?

Quick Overview

Explain what the Pandas df.info() method prints about a DataFrame and how to use that summary on a new dataset. Tests reading non-null counts and dtypes to find missing values and mistyped columns, interpreting the memory line, and knowing what the summary leaves out.

What information does df.info() provide about a DataFrame?

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Other

What information does `df.info()` provide about a Pandas `DataFrame`, and how would you use it when you first open a dataset? ```hint Read it as a diagnostic Think about which data problems you could spot by comparing the numbers it prints for each column with the row count and the dtype you expected. ``` ### What a Strong Answer Covers - The parts of the printed summary: the index, each column's name, non-null count and dtype, the dtype tally and memory usage - How to read it to find missing values and columns stored with the wrong type - What the "+" on the memory line means, and how to get an accurate figure - How the output changes on very wide or very long DataFrames, and what `info()` does not tell you ### Follow-up Questions - An integer ID column shows up as `float64` in `info()`. What is the likely cause? - How would you get the share of missing values per column, which `info()` does not print directly? - How does `df.info()` differ from `df.describe()` and `df.dtypes`?

Overview: Explain what the Pandas df.info() method prints about a DataFrame and how to use that summary on a new dataset. Tests reading non-null counts and dtypes to find missing values and mistyped columns, interpreting the memory line, and knowing what the summary leaves out.

Nov 25, 2026
easyData ScientistOtherData Manipulation (SQL/Python)
0
0

What information does df.info() provide about a Pandas DataFrame, and how would you use it when you first open a dataset?

What a Strong Answer Covers Guidance

  • The parts of the printed summary: the index, each column's name, non-null count and dtype, the dtype tally and memory usage
  • How to read it to find missing values and columns stored with the wrong type
  • What the "+" on the memory line means, and how to get an accurate figure
  • How the output changes on very wide or very long DataFrames, and what info() does not tell you

Follow-up Questions Guidance

  • An integer ID column shows up as float64 in info() . What is the likely cause?
  • How would you get the share of missing values per column, which info() does not print directly?
  • How does df.info() differ from df.describe() and df.dtypes ?