'For data get the Companies have increasing no of participants in last 3 years in Pandas

Below is the Data given.

year    Company/Account Name    participants 
2019    Willis Towers Watson    418
2020    Willis Towers Watson    568
2021    Willis Towers Watson    57
2019    White Plains Hospital   1904
2020    White Plains Hospital   742
2021    White Plains Hospital   3710
2019    Westchester Flying Club 310
2020    Westchester Flying Club 463
2021    Westchester Flying Club 562
2019    Us Open                 282
2020    Us Open                 742
2021    Us Open                 812
2019    Upledger Institute      625
2020    Upledger Institute      49
2021    Upledger Institute      152

Output Should be

  1. Westchester Flying Club

  2. Us Open

Above two company having increasing number of participants in last three years.

Data:

{'year': [2019, 2020, 2021, 2019, 2020, 2021, 2019, 2020, 
          2021, 2019, 2020, 2021, 2019, 2020, 2021],
 'Company/Account Name': ['Willis Towers Watson', 'Willis Towers Watson', 
                          'Willis Towers Watson', 'White Plains Hospital', 
                          'White Plains Hospital', 'White Plains Hospital',
                          'Westchester Flying Club', 'Westchester Flying Club', 
                          'Westchester Flying Club', 'Us Open', 'Us Open', 
                          'Us Open', 'Upledger Institute', 'Upledger Institute',
                          'Upledger Institute'],
 'participants': [418, 568, 57, 1904, 742, 3710, 310, 
                  463, 562, 282, 742, 812, 625, 49, 152]}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source