I have below dataframe.
id,code
1,GSTR
2,GSTR
3,NA
4,NA
5,NA
here GSTR may change it can be anything. i want to replace NA with other string that is present in the same column.
In this case i want to replace NA with other string that is present in the column i.e GSTR. I tried to use UDFS but being an unknown string. I am not able to figure out.
Note: In this code column there will be only two strings. one will be "NA" and another can be anything in our case GSTR is another string
Expected output
1,GSTR
2,GSTR
3,GSTR
4,GSTR
5,GSTR