Skip to main content
PyPath
Home
Courses
Courses
See both
1
Python Foundations
10 units
2
Python for Data
10 units
Sandbox
Classroom
My class
Settings
Start learning
Sign in
My progress
My classroom
Account
Sign out
Courses
·
Python for Data
Unit 4 · Series and DataFrames
The two pandas objects, and the labels that make them different from arrays.
1
The Series
A column with labels attached, and the labels travel with the data.
2
Building a DataFrame
A table is a dictionary of columns that share one index.
3
Selecting Columns and Rows
loc goes by label, iloc goes by position, and the difference matters.
4
Adding and Dropping Columns
A new column is an assignment, and drop returns a new table by default.
5
dtypes in pandas
What each column is holding, and how to change it on purpose.
6
Reading a CSV into pandas
One line replaces the whole of unit 1, and then you check what you got.