Reputation: 104
I have a dataframe and some of them are empty. I want to make it a None string so I can parse it easier than a NaN value.
Upvotes: 0
Views: 39
Reputation: 201
df = df.replace(np.nan, 'None', regex=True)
Use the code above.
Upvotes: 1