Q. From the series Ser1 of areas (given earlier that stores areas of states in km2), find out the areas that are more than 50000 km².
Answer :-
import pandas as pd Ser1= pd. Series ([34567, 890, 450, 67892, 34677, 78902, 256711, 678291, 637632, 25723, 2367, 11789, 345, 256517]) print (Ser1[Ser1 > 50000])
Output :-
3 67892
5 78902
6 256711
7 678291
8 637632
13 256517
dtype: int64
>>>
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )