Preview and Structure in Python

From the Pandas cheat sheet ยท Inspect Data ยท verified Aug 2026

Preview and Structure

Inspect rows and structural metadata.

python
df.head()
df.tail()
df.shape
โšก head() returns five rows by default
๐Ÿ“Œ info() reveals null counts and dtypes
๐Ÿ” deep=True includes object-backed memory
๐ŸŽฏ Inspect data immediately after loading
inspectinfoshape

Continue with Pandas

Save the full cheat sheet or work through every related task.

More Python tasks

Back to the full Pandas cheat sheet