Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

remove column by index

df.drop(list(df)[2:5], axis=1)
Comment

PREVIOUS NEXT
Code Example
Python :: sklearn regression 
Python :: Set symmetric Using Python Set symmetric_difference() Method 
Python :: captions overlap in seaborn plot jupyter 
Python :: Pandas conditional collumn 
Python :: python find index of an item in an array 
Python :: find number of unique keys in the dictionary 
Python :: python list directories only 
Python :: pretty printing using rich library in python 
Python :: python crear dataframe 
Python :: how to make python code faster 
Python :: Invalid comparison between dtype=datetime64[ns] and date filter 
Python :: fillna not work 
Python :: HUNGRY CHEF codechef 
Python :: python square number 
Python :: temp python web server 
Python :: iterate through a list 
Python :: django fieldset 
Python :: pickle save dict 
Python :: python pretty print list of tuples 
Python :: how to kill a script if error is hit python 
Python :: pandas description of dataframe renaming column values 
Python :: load python file in jupyter notebook 
Python :: numpy generate sequence 
Python :: matplotlib larger chart 
Python :: python list to dict 
Python :: change the side of the axis plt python 
Python :: python how to draw a circle 
Python :: bitwise and python image 
Python :: python how to align text writen to a file 
Python :: pandas dataframe to excel hyperlink length limit 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =