pandas and NumPy 3 · Cleaning and transforming

Drop columns

Remove columns you don't need.

df = df.drop(columns=["temp", "notes"])

Official pandas and NumPy 3 documentation

More cleaning and transforming commands

All cleaning and transforming commands · pandas and NumPy 3 cheatsheet

Was this page helpful?