I have this dataset:
DF1
| ID | artshort | artlong |
| 248 | 123 | |
| 249 | 456-1 | |
| 100 | 456 | 456-1 |
As a result I want a dataset with the rows where artshort of one row is the same as artlong of another row.
I tried:
dftest = df1['artshort'].isin(df1['artlong'])]
But this is not working. Not sure if "isin" is the best approach in this case