I have searched all around the internet and tried many methods before making this post, I have a dataframe where I want to:
- Replace NaN value of TGT_COLUMN_SCALE to 0 If TGT_COLUMN_DATA_TYPE is equals to NUMERIC.
Kindly help me out with this issue.
I tried this code but it's not working:
df["TGT_COLUMN_SCALE"] = np.where(df["TGT_COLUMN_DATA_TYPE"] == "NUMERIC", 'NaN', 0)
