I have a master Dataframe as:
Time Frq Seq 12:46:17 4200.0 30700.0 12:49:29 4160.0 30690.0 12:46:18 3060.0 30700.0 12:46:18 3060.0 30700.0 12:46:19 3060.0 30700.0 12:46:20 3060.0 30700.0 12:46:20 4240.0 30700.0 12:46:19 4220.0 30700.0 12:46:18 4200.0 30700.0 12:46:18 4200.0 30700.0 12:46:38 3060.0 30700.0 12:43:04 4620.0 30701.0 12:46:38 4600.0 30701.0 12:46:05 4600.0 30701.0 12:46:37 3060.0 30700.0 12:48:35 3020.0 30690.0 and a child Dataframe as:
Frq Seq 3060.0 30700.0 4600.0 30701.0 I want to collect the 1st occurrence of the Child Dataframe rows in Master Dataframe.
I want my Result Dataframe as:
Time Frq Seq 12:46:18 3060.0 30700.0 12:46:38 4600.0 30701.0
timecol is sorted, can you trymaster.merge(child,on='Frq',suffixes=('','_')).groupby('Frq',as_index=False).first().reindex(master.columns,axis=1)?