Page 82 - IPP-12-2024
P. 82

3  01/04/2018           42          4  Sunny
            4  01/05/2018           41          7   Rain
            5  01/01/2018           40          2  Sunny
            Number of Rows and Columns
            (6, 4)
                      day  temperature  windspeed  event
            0  01/01/2018           42          6  Sunny
            1  01/02/2018           41          7   Rain
            2  01/03/2018           43          2  Sunny
            3  01/04/2018           42          4  Sunny
            4  01/05/2018           41          7   Rain
            Tail
                      day  temperature  windspeed  event
            4  01/05/2018           41          7   Rain
            5  01/01/2018           40          2  Sunny
            Specified Number of Rows
                      day  temperature  windspeed  event
            2  01/03/2018           43          2  Sunny
            3  01/04/2018           42          4  Sunny
            4  01/05/2018           41          7   Rain
            Print Everything
                      day  temperature  windspeed  event
            0  01/01/2018           42          6  Sunny
            1  01/02/2018           41          7   Rain
            2  01/03/2018           43          2  Sunny
            3  01/04/2018           42          4  Sunny
            4  01/05/2018           41          7   Rain
            5  01/01/2018           40          2  Sunny
            Print Column Names
            Index(['day', 'temperature', 'windspeed', 'event'], dtype='object')
            Data from Individual Column
            0    01/01/2018
            1    01/02/2018
            2    01/03/2018
            3    01/04/2018
            4    01/05/2018
            5    01/01/2018
            Name: day, dtype: object
            0    42
            1    41
            2    43
            3    42
            4    41
            5    40
            Name: temperature, dtype: int64
            Maximum Temperature :  43
            Printing According to Condition
   77   78   79   80   81   82   83   84   85   86   87