I have a dataframe with a column 'Country'. Every country has multiple records. I want to write a function in python using pandas so that for every country it can return a seperate dataframe.
Having a country list like , countries=['US, 'Spain', 'France'],
Individually i can do by
but how can it be done using a function! Thanks in advance