Context
A CSV export from the MS SQL Server has "NULL" as value across various columns randomly
Expected Outcome
Replace the "NULL"s with None as the data is multi data-typed This is an intermediate step before I selectively replace None to 0, 'Uknown', etc depending the data type of the column
Tried
df[['Col1', 'CCol1']].replace(to_replace = ['NULL', ' '], value=None, inplace = True)
seems to remove the rows entirelydf[['Col1', 'CCol1']].replace(to_replace = ['NULL', ' '], value='------', inplace = True)
seems at least do the replace functiondf.where(df['Col1'].map(lambda x: str(x) == 'NULL'), inplace=True)
seems to Nan all the values in rows that meet the criteria
Limitation
df[['Col1', 'CCol1']] is already limiting as I would ideally like to replace NULL in all columns with None
Other material referred to
Replacing few values in a pandas dataframe column with another value
Is there an effective way to replace NULLs to None across all columns and rows?