我尝试在以下函数中插入上述代码。但是,当我将该函数应用于数据帧时,会出现以下错误: if row['url_text'] == df[df['url_text'].str.contains('blocked/Code/venv/lib/python3.9/site-packages/pandas/core/frame.py&qu
到目前为止,我有一段代码可以创建一个索引的numpy数组,其中字段date包含迭代这些行的's of: selected_index = ddd[ddd["date"].str.contains('\'of 1900‘改为1980,'90's of the 18世纪’‘改为1790: for index in selected_index: