outputfrom the output we can see new brics dataframepandas has assigned key for each country as the numerical values through if instead of giving indexing values from to we would like to have different index valuessay the two letter country codeyou can do that easily as welladding below one lines in the above codegives brics index ['br''ru''in''ch''sa'output indexing dataframes