alex_bn_lee

导航

[986] Filter rows by containing a particular word in Pandas

In Pandas, you can filter rows based on whether a specific column contains a particular word or substring. Here are a few ways to achieve this:

  1. Using str.contains():

  2. Inverting the Filter:

  3. Partial Match and Remaining String:

 

posted on 2024-04-23 08:56  McDelfino  阅读(1)  评论(0编辑  收藏  举报