Published
- 1 min read
pandas to dict by row
The solution for this is noted below
pandas to dict by row
Solution
data_dict = pd.read_csv('file.csv').to_dict(orient='records')
Try other methods by searching on the site. That is if this doesn’t work