where the dataframe has a missing value for code, look for rows with the same details and return the code for that row code example
Example 1: missing values in a dataset python
df.isnull().sum()
Example 2: how to filing the missing data by mean of row in dataframe in pandas
df.T.fillna(df.mean(axis=1)).T