Page 83 - IPP-12-2024
P. 83
day temperature windspeed event
0 01/01/2018 42 6 Sunny
2 01/03/2018 43 2 Sunny
3 01/04/2018 42 4 Sunny
Printing the row with maximum temperature
day temperature windspeed event
2 01/03/2018 43 2 Sunny
Printing specific columns with maximum temperature
day temperature
2 01/03/2018 43
According to index
day 01/04/2018
temperature 42
windspeed 4
event Sunny
Name: 3, dtype: object
Changing of Index
temperature windspeed event
day
01/01/2018 42 6 Sunny
01/02/2018 41 7 Rain
01/03/2018 43 2 Sunny
01/04/2018 42 4 Sunny
01/05/2018 41 7 Rain
01/01/2018 40 2 Sunny
Searching according to new index
temperature 43
windspeed 2
event Sunny
Name: 01/03/2018, dtype: object
Resetting the Index
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
Sorting
day temperature windspeed event
2 01/03/2018 43 2 Sunny
0 01/01/2018 42 6 Sunny
3 01/04/2018 42 4 Sunny
1 01/02/2018 41 7 Rain
4 01/05/2018 41 7 Rain
5 01/01/2018 40 2 Sunny
Sorting on Multiple Columns