I am new to Python and tried to use the following:
pos = pd.DataFrame(columns=['id', 'pred'])
pos.loc[1,'id'] = [4, 4, 4]
pos.loc[2,'id'] = [2, 3, 3]
list1 = [2, 3, 3]
list2 = [3, 2, 3]
print(pos)
print(list1 in pos['id'].values)
print(list2 in pos['id'].values)
It gives me the Error:
ValueError: operands could not be broadcast together with shapes (2,) (3,)