Page 77 - IPP-12-2025
P. 77
state_max_2022 = result.loc[result['Nov 2022 to June 2023'] == max_
detections_2022]
print("State/UT with maximum fire detections in Nov 2022 to June 2023
({max_detections_2022} detections):\n", state_max_2022.index)
print(state_max_2022[['State/UT']])
elif chana == 4:
min_detections_2022 = result['Nov 2022 to June 2023'].min()
state_min_2022 = result.loc[result['Nov 2022 to June 2023'] == min_
detections_2022]
print("State/UT with minimum fire detections in Nov 2022 to June 2023
({min_detections_2022} detections):\n", state_min_2022.index)
print(state_min_2022[['State/UT']])
elif chana == 5:
break
elif ch == 9:
break
OUTPUTS: