i have a dataset that i read in with pd.read_excel
Block Con
1 100
1 100
1 100
1 33
1 33
1 33
2 100
2 100
2 100
2 33
2 33
2 33
...
there are a total of 10 'block's, each 'block' has 2 types of 'con': 100 and 33. how can i iterate through the 'Block' column so that for each 'block' it prints out the 2 types of 'con': 100 and 33
desire output:
1 100
33
2 100
33
my code:
for b in data.Block:
for c in data.Con:
print(c)
but it prints out all of the con for each row of block.