Wednesday, October 19, 2022

Python | Filtering data with Pandas .query() method

Source:
https://www.geeksforgeeks.org/python-filtering-data-with-pandas-query-method/


data.query('Senior_Management == True 
            and Gender =="Male" and Team =="Marketing" 
            and First_Name =="Johnny"', inplace = True)
  
# display
data

No comments: