remove index and header while saving to csv pandas code example Example: code how pandas save csv file df.to_csv('out.csv')