I have two pandas dataframes, and both dataframes have equal number of rows and columns.
Only the first column in both dataframes have non NaN values. For other columns, it might be either NaN or some integer.
I need to compare the two dataframes using the first column, and update the value of the other columns in the second dataframe to NaN, if it is NaN in the first dataframe, irrespective of any value in the second dataframe.
I tried bruteforce method by converting df into dictionary, and compare each values. Is there a simple way to achieve this using Pandas functions?