how to limit the number of output when using between in pandas code example
Example: values outside range pandas
# Get rid of values inside a range for a defined column
df = df[~df['column_name'].between(lower_boundary,upper_boundary)]
# Get rid of values inside a range for a defined column
df = df[~df['column_name'].between(lower_boundary,upper_boundary)]