I have 2 dataframes
the first is df_my that looks like this
Seq Grp Lvl Distance
0 1 A 1 71
1 2 A 2 50
2 3 F 1 35
...
19 20 A 1 68
20 21 C 3 25
The 2nd dataset is df_Out
Seq Grp Lvl Distance
1 2 J 9 50
2 3 K 6 35
...
20 21 S 8 25
All records with the same Seq in df_Out are in df_My
except Seq for records with Disance > 55
I want to put these 2 dataframes together considering
If record (Seq) in df_Out then it is the to be in my final dataframe
If record (Seq) is not in df_Out but in df_My then the one from df_My is in the final data frame
df_Final will be
Seq Grp Lvl Distance
0 1 A 1 71
1 2 J 9 50
2 3 K 6 35
...
19 20 A 1 68
20 21 S 8 25
How to do that?