Source: Replace NaN with Blank or Empty String in Pandas? – GeeksforGeeks
# replace nan with empty string
# using fillna() function
data.fillna(”)
# replace nan with empty string
# using fillna() function
data[[‘name’, ‘subjects’, ‘marks’]].fillna(”)