Hello everyone,
I would like to replace the NA contained in a variable by the value taken by its duplicate in another line
In fact I would like something like this :
id count model
name
A
toyota
A
NA
B
camry
B
NA
and I want input the NA by his ID like this :
name
A
toyota
A
toyota
B
camry
B
camry
i have a lot of ID , like seriecode
thank you for your help
thanks for your answer, the problem is that I have a large amount of id and name, I would like to replace the value by the one that its ID takes in another line.
I just tried your code and I get something like this: