Filter Pandas DataFrame by substring matching 🐼

Published: 07 February 2023
on channel: ModernPython
218
9

In this short video, I show you how to filter a Pandas DataFrame by substring matching. You invoke .str.contains on the column with text. In order to handle NaNs you add ==True after contains().


Watch video Filter Pandas DataFrame by substring matching 🐼 online without registration, duration hours minute second in high quality. This video was added by user ModernPython 07 February 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 218 once and liked it 9 people.