Python: Pandas filter string data based on its string length

后端 未结 6 1231
眼角桃花
眼角桃花 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:28

    If You have numbers in rows, then they will convert as floats.

    Convert all the rows to strings after importing from cvs. For better performance split that lambdas into multiple threads.

提交回复
热议问题