I want to delete specific rows based in conditions on rows from a Pandas dataframe.
For example, since I have several currency pairs at the same time, I intend to select only one of the currencies of the same time.
This is the priority: EUR, USD, GBP, CHF.
currency timebuy buyprice
CNHUSD 2021-01-05 08:30:00 0,00005073
CNHGBP 2021-01-05 08:30:00 1,588
ZARGBP 2021-01-07 05:15:00 0,2727
ZARUSD 2021-01-07 05:15:00 300
ZAREUR 2021-01-07 13:00:00 0,1936
ZARCHF 2021-01-07 13:00:00 0,0000052
JPYCHF 2021-01-13 06:00:00 0,0002222
JPYUSD 2021-01-13 06:00:00 8
JPYGBP 2021-01-13 06:00:00 8

to
currency timebuy buyprice
CNHUSD 2021-01-05 08:30:00 0,00005073
ZAREUR 2021-01-07 13:00:00 0,1936
JPYUSD 2021-01-13 06:00:00 8

ZARUSD, 2021-01-07 05:15:00, 300?