Python: Pandas filter string data based on its string length

后端 未结 6 1224
眼角桃花
眼角桃花 2020-12-01 08:35

I like to filter out data whose string length is not equal to 10.

If I try to filter out any row whose column A\'s or B\'s string length is not equal to 10, I tried

6条回答
  •  一向
    一向 (楼主)
    2020-12-01 09:16

    you can use df.apply(len) . it will give you the result

提交回复
热议问题