I have following table as a dataset. I am looking forward to merge cells with same records for all the columns
| Country | Province | City |
| CAN | ON | Toronto |
| CAN | ON | Toronto |
| CAN | ON | Mississauga |
| CAN | AB | Edmonton |
| CAN | AB | Calgary |
| CAN | NS | Halifax |
| CAN | NS | Halifax |
| | NS | Lunenburg |
| US | CA | SF |
| US | CA | SF |
| US | TX | Austin |
| US | TX | Austin |
| US | TX | Dallas |
| US | TX | Dallas |
Desired output is: I am not able to paste the desired output. But I am looking to merge cells in a way that every country, province and city appears only once.
Sample input and output is attached with this.