我有两个电子表格,电子表格1和电子表格2。我需要从电子表格2中提取与电子表格1匹配的数据(行)。理想情况下,我需要从电子表格2中获取ID,该表格具有与电子表格1相匹配的站点名称。在
Spreadsheet 1:
Site Name :
10410_DL01_Patels_Foodmarket
10700_DL01_CD_Toronta
110190_DL13__Jonny_Mall
110300_DL13_Ezy_Mart
CONTINUED
Spreadsheet 2:
ID Site Name Address Upgrade
10747 10410_DL01_Patels_Foodmarket ********* *********
32544 104658_D_Torano_fedf ******** *********
84562 103894_Girngsdfj ******** ********
10727 10700_DL01_CD_Toronta ******** *********
42344 104658_D_Torano_fedf ******** *********
65465 103894_Girngsdfj ******** ********
32544 104658_D_Torano_fedf ******** *********
84562 103894_Girngsdfj ******** ********
10838 110190_DL13__Jonny_Mall ******** *********
10487 110300_DL13_Ezy_Mart ******** *********
CONTINUED
这可能会起作用,使用xlrd包:
输出:
^{pr2}$令人惊讶的是,它相当短,在9行代码中完成。 希望这有帮助。
相关问题 更多 >
编程相关推荐