I am finding a lot of useful help here today, and I really appreciate it. This should be the last one for the day:
I have a list of the top 10 keywords per site, sorted by visits, by date. The records need to be sorted as follows (excuse the formatting):
2010-05 2010-04 site1.com keyword1 apples wine keyword1 visits 100 12 keyword2 oranges water keyword2 visits 99 10 site2.com keyword1 blueberry cornbread keyword1 visits 90 100 keyword2 squares biscuits keyword2 visits 80 99
Basically what I need to accomplish involves grouping, but I can't seem to figure it out. Am I heading down the right path, or is there another way to achieve this, or is it just impossible?
Edit: The dataset is something like this (csv):
site_name,date,keyword,visits site1.com,2010-04,apples,100 site1.com,2010-04,oranges,99 site1.com,2010-05,wine,12 site1.com,2010-05,water,10 site2.com,2010-04,cornbread,100 site2.com,2010-04,biscuits,99 site2.com,2010-05,blueberry,90 site2.com,2010-05,squares,80
Across the X-axis, we need to have the 'date' value Across the Y-axis, we need to have the 'site_name' as the primary value, but grouped within that we need to have the 'keyword' followed by the respective 'visits'.