I have a PySpark DataFrame :
From id To id Price Date
a b 20 30/05/2019 b c 5 30/05/2019 c a 20 30/05/2