2021年5月6日星期四

Select rows which contain numeric substrings in Pandas

I need to delete rows from a dataframe in which a particular column contains string which contains numeric substrings. See the shaded column of my dataframe.

enter image description here

rows with values like 0E as prefix or 21 (any two digit number) as suffix or 24A (any two digit number with a letter) as suffix should be deleted.

Any suggestions? Thanks in advance.

https://stackoverflow.com/questions/67427757/select-rows-which-contain-numeric-substrings-in-pandas May 07, 2021 at 09:09AM

没有评论:

发表评论