我有一个如下格式的json文件: {Continent: Asia, Description: Biggest continent in the WORLD},{Continent: Australia, Description: The only country & continent in the world} 我正在尝试过滤数据帧中包含字符串world的行。val continents
我当前正在尝试返回子字符串,如果字符串中存在,且不区分大小写。 举个例子,即使句子是“苹果很酷”或者“我喜欢苹果”或者“我喜欢苹果”,我也想返回字符串"apple“。到目前为止,我得到的是: words = [x for x in df_word_list['word'].tolist() if x in str(df['sentence'][i])] 这给了我返回的单词,但它区分大小写,有人知道如何将