SECTION II (CASE STUDY)
q22. Assume a data frame df1 that
contains data about climatic conditions of
various cities with C1, C2, C3, C4 and C5
as indexes, shown below and give the
output of any four questions from (i) to (v).
City Maxtemp Min Temp Rain Fall
C1 Delhi 40 32 24.1
C2 Bangalore 31 25 36.2
C3 Chennai 35 27 40.8
C4 Mumbai 29 21 35.2
C5 Kolkata 39 23 41.8
1. >>>df1.shape
2. >>>df1[1:2]
3. >>>df1.loc['c1':'23','City')
4. >>>df1.iloc[2]
5. >>>df.city
(4 Points)
Share
Explanation:
bzzbzhzhzhzhhhHhzhzxbvxvxxcdvvdbddbhvdvdxvdbdbvfdvxhvdhbznzzjzhzhzhzjhzhxhxhxhxhzhxhhddhhddhdhhdhdhdhdhhsdhdhhdhdjszidudhhhshdhahdhdhdhdhdhdhhdhdhdh