Python - append items of list to different keys in dictionary

Use pandas to read CSV file and further can be processed through dictionary processing.

import pandas as pd

df = pd.read_csv('sales.csv')

res_dict = {col:list(df[col].values) for col in df.columns}

print(res_dict)

Output:

{'Scan': [1, 2, 3], 'location1': [32.621, 30.976, 32.599000000000004], 'location2': [38.57, 38.451, 38.536], 'location3': [36.977, 36.971, 36.991]}