私はExcelデータセットを持っています:
"id","value","name"
1 , 10, "cat"
2 , 20, "fish"
Pythonの場合:
import xlrd
col1 = "id"
col2 = "value"
col3 = "name"
wb = xlrd.open_workbook("file.xls")
sh = wb.sheet_by_index(0)
result = sh.someMethod((col1,col3))?????
列を名前で返すメソッドはありますか?
print result
[[1,"cat"],[2,"fish"]]