When you want to apply a small tweak to the document, it must not take long to Discard columns form. This type of simple action does not have to require extra training or running through handbooks to learn it. Using the appropriate document editing instrument, you will not spend more time than is necessary for such a quick edit. Use DocHub to simplify your editing process regardless if you are a skilled user or if it is the first time making use of an online editor service. This instrument will require minutes or so to learn to Discard columns form. The only thing required to get more effective with editing is a DocHub profile.
A plain document editor like DocHub will help you optimize the time you need to devote to document editing irrespective of your prior knowledge about such resources. Make an account now and increase your productivity instantly with DocHub!
[Music] hello everyone welcome to geeksforgeeks in this video we are going to see some methods of dropping the columns of our data frame now there are several methods to achieve this and we are going to see them one by one so lets first of all import pandas as pd lets run it now lets create our data frame using a csv file so i am again going to use the bangalore csv file that is about bangalore house prices so lets create df is equal to pd dot read csv and lets define the path so which is bangalore.csv lets see the head so df dot head lets run it and i can see that this is my data frame now we can drop the columns using drop method so let me put the first topic as dropping using drop function right so in this we have to do df dot drop and inside it we have to define a list in which we can define the column name so lets say i want to drop the size column so lets copy it lets paste it inside this as a list element and we have to define the axis as 1. remember that axis is equa