[ad_1]
I would like to pick a value based on other two columns values. I have written the following code
ticketValue=df_positions.loc[(df_positions[“symbol”] == “USDCAD”) & (df_positions[“orderType”] == “sell”), “ticket”]
the excpected output is:
ticketValue = 1352438753
but actually I got none
when I write one condition only, I get all ticket numbers as follows:
ticketValue=df_positions.loc[(df_positions[“symbol”] == “USDCAD”), “ticket”]
I got ticketvalue =
11 1352438749
12 1352438753
[ad_2]