I am working on generating CSV month by month for annual report. what I do is just create CSV file initially and append to it every month end. So as to generate annual CSV file in following format:
Month 1, Nokia8800, 156.0
Month 1, Nokia3120, 113.0
Month 2, Nokia8800, 16.0
Month 2, Nokia3120, 152.0
Month 3, Nokia8800, 44.0
Month 3, Nokia3120, 52.0 and so on for 12 months.
Now what i need is to re-format this CSV in follwoing file format:
Nokia3120, 113.0,152.0,52.0 and so on for 12 months.
How can i get this done? any logic or code welcome?
thanks in advance.