I have a dataframe with a quantity
column. How do I check which values in that column are integers?
I have tried
if df['quantity'].map(type) == int:
True
else:
item_no = df['item_number'].tolist()
print(item_no)
which gives me the following ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
Ideally, I would like the output to be a list of the item numbers where the quantity is not an integer.