Last Updated: May 22, 2026
A DataFrame is the table at the heart of pandas: rows, named columns, a row index, and a column dtype per column. Selection, filtering, the index, and missing data are the building blocks; most pandas code becomes a small set of patterns applied in different orders. This lesson covers df[col], df.loc[], df.iloc[], boolean filtering, adding and dropping columns, the index, sorting, renaming, missing data, dtypes, and the SettingWithCopyWarning.