Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pandas drop column by index range

# drop columns 0 to 3
droprange = list(range(0, 4))
df.drop(df.columns[droprange], axis=1, inplace=True)
Comment

PREVIOUS NEXT
Code Example
Python :: get dictionary in array python by value 
Python :: plt.imshow not showing 
Python :: python exit program 
Python :: python saveAsTextFile 
Python :: wxpython custom dialog 
Python :: pandas read ods 
Python :: what is actually better duracell or energizer 
Python :: remove all rows where one ccolumns egale to nan 
Python :: use of the word bruh over time 
Python :: add field placeholder layout crispy modelform 
Python :: sns save chart 
Python :: django template iterate dict 
Python :: how to redirect to another page in django after login 
Python :: animate time series python 
Python :: python program to find fibonacci series using function recursion loop 
Python :: list to string python 
Python :: browser refresh selenium python 
Python :: clear pygame screen 
Python :: how to make nmap port scanner in python 
Python :: how to map array of string to int in python 
Python :: convert letters to numbers in python 
Python :: django update increment 
Python :: how to get the location of the cursor screen in python 
Python :: how to add a number to a variable in django template 
Python :: jupyter notebook extensions 
Python :: python print object 
Python :: how to clear command prompt python 
Python :: how to run function on different thread python 
Python :: python tqdm while loop 
Python :: hello world flask python 
ADD CONTENT
Topic
Content
Source link
Name
1+1 =