python - Filter pandas DataFrame by substring criteria

PHOTO EMBED

Tue Dec 13 2022 03:47:57 GMT+0000 (Coordinated Universal Time)

Saved by @lahiruaruna #python

df[df['A'].str.contains("hello")]
content_copyCOPY

https://stackoverflow.com/questions/11350770/filter-pandas-dataframe-by-substring-criteria