Horje
if a specific column name is present drop tyhe column Code Example
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




Python

Related
python code for calculating probability of random variable Code Example python code for calculating probability of random variable Code Example
Changing default fonts in matploitlibrc file Code Example Changing default fonts in matploitlibrc file Code Example
transform dictionary keys python Code Example transform dictionary keys python Code Example
resource wordnet not found python Code Example resource wordnet not found python Code Example
cannot import name 'counter' from 'collections' Code Example cannot import name 'counter' from 'collections' Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8