I have a dataframe with one column like this:
Value
xyz123
123
abc
def
I want to remove any rows that contain numbers so I end up with a dataframe like this:
Value
abc
def
I have tried
df = df[df['Value'].str.contains(r'[^a-z]')]
but I got this error:
"TypeError: 'method' object is not subscriptable"
df.filtermethod?df.filterdoes...dfto something that isn't a dataframe? Otherwise - what you've shown should work... what doestype(df)show you?