Data imputation



I'm working with a large dataset that needs some data imputation and got some questions around it. I want to filter my data based on location but a small amount of the dataset is null there. Luckily, it is sales order data, so the same SO has many orders to it and SOME of them are lacking the location information. How can I impute the data based on the same SO # so that it in case of location= null it populates the location data into empty rows so that if the row is empty it will copy from the same SO but others that contain the location data will remain unchanged?

Best Answers