I have the following source dataframe
| Person | Country | Is Rich? |
|---|---|---|
| 0 | US | Yes |
| 1 | India | No |
| 2 | India | Yes |
| 3 | US | Yes |
| 4 | US | Yes |
| 5 | India | No |
| 6 | US | No |
| 7 | India | No |
I need to convert it another dataframe for plotting a bar graph like below for easily accessing data
Bar chart of economic status per country
Data frame to be created is like below.
| Country | Rich | Poor |
|---|---|---|
| US | 3 | 1 |
| India | 1 | 3 |
I am new to Pandas and Exploratory data science. Please help here
