struggling with this one using a pandas dataframe, I have data as follows:
Animal Nationality Type Value
Leopard India Age 4.0
Elephant India Age 12.0
Leopard India Speed 30.0
Elephant India Speed 3.0
Leopard China Age 5.0
Leopard China Speed 27.0
I want to effectively merge the data into a dataframe as follows:
Animal Nationality Age Speed
Leopard India 4.0 30.0
Elephant India 12.0 3.0
Leopard China 5.0 27.0
I have looked up semi-similar problems, but have had no joy, I think due to the nature of changing the size of the dataframe, any help would be much appreciated.
Thanks in advance.