Let's create a sample dataframe having 3 columns and 4 rows. This dataframe is used for demonstration purpose.
import pandas as pd
df = pd.DataFrame({"col1" : range(1,5),
"col2" : ['A A','B B','A A','B B'],
"col3" : ['A A','A A','B B','B B']
})
Filter a value
In order to do reference of a variable in query, you need to use A A
in column col2
@
.
Mention
(continued...)from Planet SciPy
read more
No comments:
Post a Comment