I have a pandas dataframe consisting of 7 values:
Minutiae LR
0 1 1.975476
1 2 1.082983
2 3 0.269608
3 4 0.878350
4 5 2.820141
5 6 8.686183
6 7 24.340116
7 8 46.475523
8 9 66.139377
What I'm attempting to do is multiply each row a set amount of times, keeping both values the same. For example minutiae 3 by 1129 and 4 by 1085 etc.
So far I've only been able to find methods that increase the amount for each row but not individually.
I appreciate any insights to this, Thank you.
df.loc[df.index.repeat(df['Minutiae'])]?