简体   繁体   中英

Extracting numeric data from Excel column and convert into to array of strings in Python

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM