statistics into csv