Answers for "python use variable inside pandas query"

0

python use variable inside pandas query

myval1 = 'A A'
newdf = df.query("col2 == @myval1")
Posted by: Guest on March-13-2022

Code answers related to "python use variable inside pandas query"

Python Answers by Framework

Browse Popular Code Answers by Language