Introducing Radical.sh

Forget Code launches a powerful code generator for building API's

Where condition in Pandas

Filtering of records in particular data set is often required, and pandas provide where condition in multiple format.

Syntax records that match filter condition in pandas
dataframe[dataframe["col_name"] > filter_value]


Example : Select students whose age is greater than 6
import pandas
data = pandas.DataFrame({'Student Name' : ['Anil', 'Musk'], 
                        'Class' : 1, 
                        'Age' : [6, 7]})