WeCodeAcademy

DataFrames

A DataFrame is a table: columns that are each a Series, sharing one index. The easiest way to make one is from a dictionary of lists. Useful first looks: head(), shape, columns, dtypes and describe() for quick statistics.

Examplepython
Open in editor »
Quick check

What does `df.shape` return for a table with 5 rows and 3 columns?

Your turn: write the code

Print the number of rows and columns of df.

Finish the quick check (and any code exercise) to complete this lesson, or mark it done yourself.

Tip: use the left and right arrow keys to move between lessons.