output dictionary from two columns pandas data code example Example: df col to dict area_dict = dict(zip(lakes.area, lakes.count))