I'm trying to remove all the words not
from the Dataframe below.
d = {'keep': ["not useful", "useful", "not useful", "useful", "useful"]}
df = pd.DataFrame(data=d)
df['keep'] = df['keep'].replace('not', '', inplace=True)
df
This results in my 'keep' column being equal to None
.
Not sure what I'm doing incorrectly here.
Thanks