keep the rows as it is when writing pandas to csv code example Example: code how pandas save csv file df.to_csv('out.csv')