In a dataframe as such named pd:
| country | 1980 | 1990 | 2000 | 
|---|---|---|---|
| India. | 800 | 2000 | 3500 | 
| China | 200 | 2000 | 1500 | 
| UK. | 160 | 150 | 400 | 
How can we find the rows where the values of year 2000 are greater than 1000?
I see there are two ways:
pd.loc[pd['2000'] > 1000] 
and
pd[pd['2000'] > 1000]
is there a difference in the two methods? I see it produces the same results but don't understand if there is a difference.
Thanks
 
    