I have an excel file with 2 columns. There are some labels in the left column sorted according to date. For each date, a list of labels appear along with some values on the right. I need to read each date, find some specific labels and print the values accordingly. I have posted an excerpt from the original file to give you a peek at how it looks.
Row Label 1 Row Label 2
7/21/2015 123
Label 1 10.5
Label 2 20.6
[.....] 15
Label 5 25.9
Label 6 30.5
[.....] 544
7/22/2015 456
Label 1 15.8
Label 2 52.8
[.....] 87
Label 5 99
Label 6 55
Goes on....
Now as you can see above, I need to find the date first, then print only Label 1,2 and 6 along with their values in the right column. These labels repeat for each date with different values. The excel has 1000's of line of this kind of text and I need to print each date, followed by those labels and their respective values.
The output should be something like this.
7/21/2015
Label 1 10.5
Label 2 20.6
Label 6 30.5
I'm quite new to python and I saw some posts that were using XLRD. I'm not sure how to approach this problem but if anybody can help me out with this, that would be great! Any sort of help is appreciated :)
Pandasis the right lib here.