should not insert nan in to_csv pandas python code example
Example 1: pandas to_csv delimiter
df.to_csv('modified.txt', index=False, sep='\t')
Example 2: to_csv drop index
df.to_csv('file.csv', index=False)
df.to_csv('modified.txt', index=False, sep='\t')
df.to_csv('file.csv', index=False)