When I run the for loop below
for i in df:
d = df[pd.notnull(df[i])]
c = df[df[i]>str(1)].count()
print(c)
I get a results below
1 244
2 122
3 53
4 75
dtype: int64
1 122
2 206
3 62
4 77
dtype: int64
I want to create a data frame which looks like below
1 2
1 244 122
2 122 206
3 53 62
4 75 77
Can someone help me code?