[Solved] Replacing specific columns with a text [closed]


I am not going to give the whole code as it is not that difficult to write. Just write is as you described in your question, just specify the parameter how (viz pandas.DataFrame.merge). The default is inner which causes the lost rows as it merge only on rows that exists in both dataframes. From your description of the problem, you would need to set how='left'.

solved Replacing specific columns with a text [closed]