0

csv jpg

The first column in the image is of union ministry and second column contains schemes introduced in that ministry. I want to create one-many mapping using pandas in jupyter notebook. Output should be something like this:

{Department of Agriculture, Cooperation and Farmers' Welfare} =['Crop insurance scheme', 'Interest Subsidy for Short Term Credit to Farmers','Market Intervention Scheme and Price Support Scheme (MIS-PSS)','Pradhan Mantri Annadata Aay Sanrakshan Yojna (PM-AASHA)'#continued...]

buhtz
  • 10,774
  • 18
  • 76
  • 149
  • Please provide enough code so others can better understand or reproduce the problem. – Community Aug 04 '22 at 07:59
  • This answers your question - https://stackoverflow.com/questions/22219004/how-to-group-dataframe-rows-into-list-in-pandas-groupby – viggnah Aug 04 '22 at 08:12

0 Answers0