I want to filter a dataframe by only keeping the rows that conform with a regex pattern in a given column. The example in the documentation only filters by looking for that regex in every column in the dataframe (documentation to filter)
So how can i change the following example
df.filter(regex='^[\d]*', axis=0)
to something like this: (Which only looks for the regex in the specified column)
df.filter(column='column_name', regex='^[\d]*', axis=0)