I am trying to use an output within another line of code as a list. I want to find the product code where the ordernumber equals the following values:
ordnumber = [10334, 10401, 10407, 10414]
The input:
(orderdetails_df.productcode).where(orderdetails_df.ordernumber == ordnumber)
I get back the error:
ValueError: Lengths must match to compare