python 如何过滤排除非数字的列表

问题遇到的现象和发生背景

我在做导入excel表的数据处理,表中一些不带数字的行和带有“无服务”见下“字的行我不想要。用elif没有过滤掉,想问下问题出在哪,有没有更好的方法过滤?

img

# data.rows 为表格内的每一行数据  
for index, row in enumerate(data.rows):# 循环获取表格内的每一行数据
    if index < 9: # 判断index为该行跳出本次循环忽略本次数据 就不会再添加了
        continue
    elif index == 26: 
        continue
    elif index == 33: 
        continue
    elif index == 34: 
        continue
    elif index == 65: 
        continue
    elif index == 66: 
        continue
    elif index == 102: 
        continue
    elif index == 125: 
        continue
    elif index == 163: 
        continue
    elif index == 188: 
        continue
    elif index > 192:
        continue    

img


for row in data.rows:
    if row[0].value in [17, 24, 25]:
        continue
    else:
        你的处理