This is an extension of question.
I'd like to do some if/elif/else logic to create a dataframe column, pseudocode example:
if Col1 = 'A' and Col2 = 1 then Col3 = 'A1'
else if Col1 = 'A' and Col2 = 0 then Col3 = 'A0'
else Col3 = 'XX'
is it ok to mix up the types there? I'm getting this error:
TypeError: cannot compare a dtyped [int64] array with a scalar of type [bool]