Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

if a specific column name is present drop tyhe column

df.columns.str.startswith('Test')
# array([ True, False, False, False])

df.loc[:,~df.columns.str.startswith('Test')]

  toto test2 riri
0    x     x    x
1    x     x    x
Comment

PREVIOUS NEXT
Code Example
Python :: set difference in multidimensional array numpy 
Python :: python for loop float increment 
Python :: how to find the no of user for a wifi using python for ubuntu 
Python :: where are docker logs 
Python :: iterate over rows in numpy matrix python 
Python :: python popen 
Python :: ipywidgets label text color 
Python :: tensorflow euclidean distance 
Python :: input a number and print even numbers up to that number 
Python :: midpoint circle drawing algorithm 
Python :: color module python 
Python :: connect to vvenv python 
Python :: store command in discord.py 
Python :: django filter values with OR operator 
Python :: pygame get surface region 
Python :: how to calculate the google map distance in python 
Python :: how to make a static variable in python 
Python :: install tabula 
Python :: python diferente de 
Python :: how to add some thing in python list 
Python :: how to create a function in python 
Python :: how to import something in python 
Python :: how to take an input in python 
Python :: python get time executed by function 
Python :: dataframe rolling window 
Python :: python print without optional argument 
Python :: python string is in list 
Python :: rotate linked list 
Python :: loading a webpage with aiohttp 
Python :: python monitor directory for files count 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =