How to Remove Columns From Pandas Dataframe? | GeeksforGeeks

  Рет қаралды 28,852

GeeksforGeeks

GeeksforGeeks

Күн бұрын

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
Download Dataset From [www.kaggle.com/amitabhajoy/be...]
Check Out the Related Articles:
How to Drop One or Multiple Columns in Pandas Dataframe? [www.geeksforgeeks.org/how-to-...]
Complete Pandas Tutorial [www.geeksforgeeks.org/pandas-...]
WISH TO CONTRIBUTE VIDEOS ON GEEKSFORGEEKS? Please submit this Google Form - docs.google.com/forms/d/e/1FA...
Our courses: practice.geeksforgeeks.org/co...
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:
play.google.com/store/apps/de...
If you wish, translate into the local language and help us reach millions of other geeks:
kzbin.info_cs_p...
Follow us on our Social Media Handles -
Twitter- / geeksforgeeks
LinkedIn- / geeksforgeeks
Facebook- / geeksforgeeks.org
Instagram- geeks_for_g...
Reddit- / geeksforgeeks
Telegram- t.me/s/geeksforgeeks_official
Also, Subscribe if you haven't already! :)

Пікірлер: 13
@GeeksforGeeksVideos
@GeeksforGeeksVideos 3 жыл бұрын
WISH TO CONTRIBUTE VIDEOS ON GEEKSFORGEEKS? Please submit this Google Form - docs.google.com/forms/d/e/1FAIpQLScSVFlE-stz69M_l46xcwZlVRzDxT_91dlc-px5ytr7QHYmkQ/viewform
@vitorribeirosa
@vitorribeirosa Жыл бұрын
Thanks for sharing this content. It was very useful!!! Cheers
@amarsharma9949
@amarsharma9949 3 жыл бұрын
Sir, Is there any way we can copy the data from Share Point to Local
@mohammeddanishreza4902
@mohammeddanishreza4902 Жыл бұрын
Does it actually delete the column from source dataframe or file ?
@Charlay_Charlay
@Charlay_Charlay 5 ай бұрын
Thanks!
@misahhere9224
@misahhere9224 7 ай бұрын
Thankyou im literally crying
@kalyanreddygangavaram8016
@kalyanreddygangavaram8016 Жыл бұрын
How can we remove first column where it is showing index from 0 to N
@amirmahdijamshidi6513
@amirmahdijamshidi6513 Жыл бұрын
in the end you must write index= False ex "merge1.to_excel('Desktop\Pharmacy_update.xlsx', index=False)"
@user_dies
@user_dies Жыл бұрын
Watching one day before exam
@lohithraj470
@lohithraj470 Жыл бұрын
@1:36 you say axis = 1 is columns, but axis = 1 for rows, so?
@rishabhsinghal3238
@rishabhsinghal3238 10 ай бұрын
axis=0 (or axis='rows' is horizontal axis. axis=1 (or axis='columns') is vertical axis
@mwredfern
@mwredfern 2 жыл бұрын
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.
@keuzl
@keuzl Жыл бұрын
LMAO
How do I select multiple rows and columns from a pandas DataFrame?
21:47
Handling Missing Values in Pandas Dataframe | GeeksforGeeks
22:17
GeeksforGeeks
Рет қаралды 123 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
HOW DID HE WIN? 😱
00:33
Topper Guild
Рет қаралды 23 МЛН
How to remove null value Rows from DATASET | GeeksforGeeks Python
10:00
Upskill with GeeksforGeeks
Рет қаралды 9 М.
Remove Duplicate Columns from a Pandas DataFrame Automatically
13:28
How to use groupby() to group categories in a pandas DataFrame
6:57
Chart Explorers
Рет қаралды 121 М.
How do I rename columns in a pandas DataFrame?
9:37
Data School
Рет қаралды 149 М.
How do I use the MultiIndex in pandas?
25:01
Data School
Рет қаралды 172 М.
Clean Excel Data With Python Pandas - Removing Unwanted Characters
5:52
Derrick Sherrill
Рет қаралды 109 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15