head, info, and describe
Your three-line first look at any table.
head, info, and describe is a free Data Science Academy lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Data Science Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Look Before You Leap
When a new table lands, three methods give you a fast first look. They answer what, what type, and how much before any analysis. 👀
head Shows the Top
The head method prints the first five rows so you can eyeball real values without flooding your screen with thousands of lines.
df.head()Choose How Many Rows
Pass a number to head to control the preview size. head(3) shows three rows, perfect for a quick glance at a wide table.
df.head(3)tail Shows the Bottom
Its mirror, tail, prints the last rows. Great for checking that a sorted or appended table really ends the way you expect.
df.tail()info Reveals the Structure
The info method reports column names, their data types, and how many non-null values each one holds. It is your structural x-ray.
df.info()Spot Missing Data Early
In info, compare each column's non-null count to the total row count. A gap is your first missing data warning sign.
Watch the Dtypes
info also surfaces dtypes. A number stored as object usually means stray text or symbols you will need to clean before math works.
describe Summarizes Numbers
The describe method computes count, mean, std, min, max, and quartiles for every numeric column in a single tidy table.
df.describe()Read the Center and Spread
In describe, the mean shows the center while std and the min-max range show the spread. Together they sketch each column's shape.
Describe Text Columns Too
Add include="object" to describe text columns. You get count, unique values, the top value, and how often it appears.
df.describe(include="object")A Three-Line Ritual
Run head, then info, then describe on any fresh table. This ritual orients you in seconds before you commit to deeper work.
Quick Check
Match each method to the job it does best.
Recap: Your First Look
Use head for values, info for structure, and describe for stats. Three lines and you understand any new table. 🔍
Frequently asked questions
Is the “head, info, and describe” lesson free?
Yes — the full text of “head, info, and describe” is free to read here on the web, and the Data Science Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Data Science Academy course, upgrade to CoddyKit PRO.
What will I learn in “head, info, and describe”?
Your three-line first look at any table. You practise Data Science Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Data Science Academy?
No prior experience is required. Data Science Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “head, info, and describe” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Data Science Academy lesson?
Yes. Every Data Science Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Rows, Columns, and the Index
- Build a DataFrame From Scratch
- head, info, and describe
- Add, Rename, and Drop Columns