The dataset structure like this:
| text1 | text2|
| 23 | 43 |
| 44 | 23 |
| 23 | 44 |
After the deleting, the remain part should be:
| text1 | text2|
| 23 | 43 |
| 23 | 44 |
If a.Text1 == b.text2 and a.text2 == b.text1, then delete one of both.
As I have around one million items, is there any efficient way to do this? I can use the Python and MySQL database if needed.