How to Remove Columns From Pandas Dataframe? | GeeksforGeeks

preview_player
Показать описание
In this video, we're going to discuss how to remove the columns from a Python Pandas DataFrame. There are various methods for removing or dropping columns from Pandas DataFrame such as drop(), drop() with iloc[], iterative method, etc. So, let's understand each of them with the help of live examples.

00:00 Let's Start
00:58 Dropping a Column from a DataFrame Using drop()
02:01 Dropping Multiple Columns from a DataFrame Using drop()
02:27 Dropping Columns Using drop() Based on Column Indices
03:24 Dropping Columns from a DataFrame Using drop() with iloc[]
05:38 Dropping Columns from a DataFrame Using drop() with loc[]
07:16 Dropping Columns from a DataFrame by Iterative Way
08:48 Closing Notes

Check Out the Related Articles:

This video is contributed by Akshit Madan.

Please Like, Comment, and Share the Video among your friends.

#python​​ #pandas​​ #dataframe​​ #datascience​​ #pythonpandas​​ #eda​​

Install our Android App:

If you wish, translate into the local language and help us reach millions of other geeks:

Follow us on our Social Media Handles -

Also, Subscribe if you haven't already! :)
Рекомендации по теме
Комментарии
Автор

Thanks for sharing this content.
It was very useful!!!

Cheers

vitorribeirosa
Автор

Sir, Is there any way we can copy the data from Share Point to Local

amarsharma
Автор

Does it actually delete the column from source dataframe or file ?

mohammeddanishreza
Автор

How can we remove first column where it is showing index from 0 to N

kalyanreddygangavaram
Автор

@1:36 you say axis = 1 is columns, but axis = 1 for rows, so?

lohithraj
Автор

its irritating that i use to be able to access and learn from your website, without having to give up my email address to you. i am NOT giving you my email address to create an account, so I can access your site tutorials.

mwredfern