I have a pd Dataframe and some values are nan.
What I would like to do is assign nan values to all the elements of a row (excluding the element of the first column) if that row has one nan value.
For example, given the following dataframe:
Code 1996 1997 1998 GBA 100 nan 5 JOY 120 10 30 WII 300 nan nan the desired output is:
Code 1996 1997 1998 GBA nan nan nan JOY 120 10 30 WII nan nan nan