Python usa variable dentro de la consulta de pandas
myval1 = 'A A'
newdf = df.query("col2 == @myval1")
Worrisome Wallaby
myval1 = 'A A'
newdf = df.query("col2 == @myval1")