ENH: slitting export_csv in two different functions