I have two files(some rows could be same and some could be different) which have data like this-
PID, STARTED,%CPU,%MEM,COMMAND
1,Wed Sep 12 10:10:21 2018, 0.0, 0.0,init
2,Wed Sep 12 10:10:21 2018, 0.0, 0.0,kthreadd
Now, I want to perform following operations on these dataframes-
- select one row(say R1) from df1
- iterate all the rows from df2 and check for mathces with R1.
- if it found matches then store it in a seperate dataframe, if it doesn't match ignore it.
Since file has 10000 rows. so I am implementing it via python pandas but not getting the proper way. Any help would be appreciable.