If I have a DataFrame that stores values from 2 columns (A & B) from a CSV file, how would I populate a dictionary using a for loop to get the values from the DataFrame?
I need to store the rows of A B pairs like this.. A_&_B_sets = {1:[A1,B1],2:[A2,B2],…}
A_&_B_sets = {1:[A1,B1],2:[A2,B2],…}
for i in (1,n+1):
A_&_B_sets[i] = i * I
I am quite lost. Any help greatly appreciated.