Hello,
I am using the xlrd library to open a workbook and read its data. I am a newbie and can't figure out how to do a search? For examples on the States worksheet I have some records where value could be CA or TX. My task is to copy all the rows of records where Cell G has CA into one worksheet and then TX into another worksheet. Can someone point me in the right direction? This as far as I got:
Thanks
John
I am using the xlrd library to open a workbook and read its data. I am a newbie and can't figure out how to do a search? For examples on the States worksheet I have some records where value could be CA or TX. My task is to copy all the rows of records where Cell G has CA into one worksheet and then TX into another worksheet. Can someone point me in the right direction? This as far as I got:
1 2 3 4 5 |
import xlrd path = "C:\\StatesData.xlsx" inputWorkbook = xlrd.open_workbook(path) inputWorksheet = inputWorkbook.sheet_by_index( 1 ) |
John