I have a pandas dataframe:
It is a large dataframe. How can i filter out all the rows with id "north_south"?
The contains function under the str accessor returns the values that contain a given set of characters.
df[df.id.str.contains('north_south')]