Page 87 - IPP-12-2024
P. 87

5    99
            6    94
            7    80
            8    58
            9    88
            Name: Marks, dtype: int64
            Maximum Marks :  99
            Printing According to Condition
               Scno     Name  Class Section  Marks
            0     1    Mohit     10       A     90
            1     2   Rachit     11       B     89
            2     3  Pragiti     12       C     78
            5     6    Hiten     11       B     99
            6     7    Yuvan     10       D     94
            7     8    Sahib      9       C     80
            9    10    Mehak     12       C     88
            Printing the row with maximum marks
               Scno   Name  Class Section  Marks
            5     6   Hiten     11       B     99
            Printing specific columns with maximum Marks
                Name    Marks
            5   Hiten     99
            According to index
            Scno              4
            Name       Samridhi
            Class            10
            Section           A
            Marks            65
            Name: 3, dtype: object
            Changing of Index
                       Name  Class Section  Marks
            Scno
            1         Mohit     10       A     90
            2        Rachit     11       B     89
            3       Pragiti     12       C     78
            4      Samridhi     10       A     65
            5         Yukti     12       D     67
            6         Hiten     11       B     99
            7         Yuvan     10       D     94
            8         Sahib      9       C     80
            9     Diviyansh     10       A     58
            10        Mehak     12       C     88
            Searching according to new index
            Name       Samridhi
            Class            10
            Section           A
            Marks            65
   82   83   84   85   86   87   88   89   90   91   92