How to Remove a Column From a Data Frame in Pandas (Python)

preview_player
Показать описание
This video shows 3 ways to remove columns from Data Frames in the Pandas library for Python.

If you find this video useful, like, share and subscribe to support the channel!

Code used in this Python Code Clip:

import pandas as pd

# Delete by column by name

del mtcars["cyl"]

axis = 1) # 1 for columns

axis = 1) # 1 for columns

* Note: YouTube does not allow greater than or less than symbols in the text description, so the code above will not be exactly the same as the code shown in the video! I will use Unicode large < and > symbols in place of the standard sized ones. .

Рекомендации по теме
Комментарии
Автор

As always super helpful videos - I love the short format

adamshenk