I want to get the row number of matching condition similar like .isin, part of dataframe are shown like this
df1
0 452525
1 110101
2 393910
df2
0 100000
1 110000
2 110100
3 110101
4 110102
5 110105
6 110106
7 110107
8 110108
9 110109
10 110111
11 110112
12 110113
13 110114
14 110115
when I use
t1.isin(t2)
I got
0 False
1 True
2 False
My desired output is
0 NaN
1 3
2 NaN
Is there a method to do this? But I want to avoid using pd.merge() since both dataframe is big, if merging them would take long time to execute