pandas convert column to kex code example Example: df col to dict area_dict = dict(zip(lakes.area, lakes.count))