I have data in excel sheet which is arranged like this :
I want to write a python code in Spyder to extract the 2nd column of this data in this form :
data1 = ["66","55","33","22"]
How can I do this? I am doing this using xlrd.
假设存储您的工作表的变量是“工作表”,您可以执行以下操作:
second_col_data_arr = sheet.col_values(1)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.