def remove_rows(dic, del_index): for i in del_index: for j in dic.items(): dic[j].pop(i) return dic
What I expected to happen:
I expect to get solution
What actually happened:
"Executing the function remove_rows caused an error: TypeError: 'dict_items' object is not subscriptable."