I have the reverse problem as described in Prevent pandas from interpreting 'NA' as NaN in a string.
I work with older English text data and want to write the word "nan" (i.e. Modern English 'non(e)') into an Excel file.
I want Excel to show this word as "nan" for a particular column. However, I don't want empty cells elsewhere in my dataframe be filled with any other Excel NaN-replacements.
Instead, what I get when I use df.to_excel() is an empty cell.