customer    date    x   y   z
1   10/7/2015 0:00  4   4   
1   10/7/2015 1:00  5   9   1
1   10/9/2015 0:00  4   0   3
2   10/7/2015 0:00  8   8   4
2   10/7/2015 1:00  4       5
3   10/7/2015 0:00  1       
3   10/7/2015 1:00  4   0   
3   10/9/2015 0:00  4       0
In the above table, i want to create 3 folders based on the column 'customer' as 1,2,3 and each of the folders should have csv files created based on 'date' column. Note: date column should be grouped based on day and not time. for example, folder 1 should have 2 csv files as 1072015.csv(2 records) and 1092015.csv (1 record)
folder 2 should have 2 csv files with 1 record each.
 
     
    