0

I have the following pandas dataframe:

Column1   Column2   Column3
type1     custom1   name1
type2     custom2   NONAME
type3     custom3   name2
type4     custom4   name2
............

How could I replace the Noname with in this case name1. Currently column 3 contains an uneven number of name1 and name 2 and I want to end up having half of the column with name1 and the other half with name2. If this brings more insight I have my current columns based on How to iterate over pandas dataframe and create new column

Community
  • 1
  • 1
Andrei Cozma
  • 950
  • 3
  • 9
  • 14

0 Answers0