pandas 根据内容匹配并获取索引

bool = ExcelDataStr.str.contains("Item No./Customer/Saler")
# 初始位置:initial position, 终位置:end position
initial_position = ExceclData[bool].index.tolist()
posted @ 2020-07-23 15:22  胸怀丶若谷  阅读(1310)  评论(0)    收藏  举报