DataFrames: Rows, Columns and the Index

A DataFrame is pandas' table, and shape, columns and dtypes describe it, df['col'] picks one column as a Series, df[['a', 'b']] picks several as a smaller table, a new column can be made from two others in one line, and the index labels every row.

By

Updated

Cheat sheet: DataFrames: Rows, Columns and the Index
Category
Data Analysis
Level
Apprentice
Tags
DataFrame, dtype, Index (python), python, Series