I am a beginner in pandas and python, asking for a little bit help. Here is my dataset, the k_symbol column labels either UVER or SIPO, I want to replace UVER as int 0, and SIPO as int 1.
I tried dff.replace(to_replace=['k_symbol'], value=[1, 0]), but it does not seem right. Appreciate for any suggestions