sorry about this basic question, I just a beginner in Python programming. From my undertsanding, & and "and" are the same things, and "&" is just a shorhand for "and" so if I use Python's dataframe
df[ (df.StateAb == "NSW") & (df.PartyAb == "LP") ]
this compliles OK,but if I type
df[ (df.StateAb == "NSW") and (df.PartyAb == "LP") ]
then it cannot be compiled correctly.
so what's the difference between "and" and "&",