How to convert below mentioned R code to python code? [closed]

use is use numpy.where

import numpy
my_data['category']=numpy.where(my_data.category=="WD",'TRUE,my_data.category)

by the way , Please edit and update your question to answer it more better , We are happy to help

Leave a Comment