Guided Notes
Selecting, Filtering & Sorting
Choosing columns, filtering rows with conditions, isin and query, sorting, and adding columns.
Selecting columns
Slide 1 / 5df['Calories'] β one column, as a Series. df[['Duration', 'Calories']] β several columns, as a DataFrame (note the double brackets: a list inside the brackets).
Drop columns you don't need: df.drop(columns=['Maxpulse']). Rename them: df.rename(columns={'Calories': 'kcal'}).
Selecting only the columns you need keeps output readable and memory low.
