首页 > 解决方案 > 如何在python数据框中出现单词之前删除句子开头的数字和字母数字?

问题描述

我有一个由数字、单词和字母数字组成的数据框。我需要删除数字和字母数字,直到出现单词。这是数据框

       text
0     5dgt468h at 56 home every day 6 to 8
1     I am going home at 6
2     6 pm is the evening
3     45 67 are numbers 
4     33 23 45ghd4  are junk

我需要的是

       text
0     at 56 home every day 6 to 8
1     I am going home at 6
2     pm is the evening
3     are numbers 
4     are junk

标签: pythonregexpandas

解决方案


推荐阅读