I have a dataset, df, where I would like to remove any unnamed columns and remove rows that contain a specific value:
data
Unamed ID Name
0 0 a app23
1 1 b db23
2 2 c db233
desired
ID Name
b db23
c db233
I would like to remove any unnamed columns as well as remove any rows where the Name column values contain the string 'app'
doing
df.drop(df.index[df['Name'] == 'app'
Any suggestions are helpful