I have a long dataframe with daily dates starting from 1999. I apply a filter to the original_dataframe to create a new_dataframe_1 and another filter to create new_dataframe_2.
How do I create a third dataframe which contains only the rows that new_dataframe_1 and new_dataframe_2 have in common?
new_dataframe_1
A B C D
1 a b c d
2 a b c d
3 a b c d
4 a b c d
new_dataframe_2
A B C D
3 a b c d
4 a b c d
5 a b c d
6 a b c d
new_dataframe_3 = union of new_dataframe_1 and new_dataframe_2
A B C D
3 a b c d
4 a b c d