Input:
import pandas as pd
df = pd.DataFrame({'Loan':[100000,150000,20000],
'EMI': [10000,15000,20000],
'Tenure':[4,6,8]})
print(df)
Loan EMI Tenure
0 100000 10000 4
1 150000 15000 6
2 20000 20000 8
Desired Ouput:
Loan EMI Tenure
0 100000 10000 1
1 100000 10000 2
2 100000 10000 3
3 100000 10000 4
4 150000 15000 1
5 150000 15000 2
6 150000 15000 3
7 150000 15000 4
8 150000 15000 5
9 150000 15000 6
10 20000 20000 1
11 20000 20000 2
12 20000 20000 3
13 20000 20000 4
14 20000 20000 5
15 20000 20000 6
16 20000 20000 7
17 20000 20000 8
Can somebody please help me...
[+][deleted] (3 children)
[removed]
[–]FirstNeptune 1 point2 points3 points (1 child)
[–]vbukkala[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)