I am trying to replace the value in my whole dataframe if part of the string match. I tried to use df.replace
df.str.contains
etc but none of them are working. Here are similar questions but they are not answering my question [sample][1]:
I have datframe like this: df
Brand 2Brand 3Brand
Audi BMW None of the above
None from list BMW Audi
None None below or above BMW
NaN Audi NaN
I just want to replace everywhere None appear.
The desired otput would be like this:
Brand 2Brand 3Brand
Audi BMW None
None BMW Audi
None None BMW
NaN Audi NaN