python - Going down columns using xlrd -


Say I have a cell (9 3). I want to get values ​​from (9.3) (9, 99) How can I lower the columns to get the values? I am trying to write values ​​in another best file that starts with (13, 3) and ends (13,99). How do I write a loop for it in Xlrd?

  def write_into_cols_rows (r, c): range for numbers (0 9): c + = 1 return (r, c)    

worksheet.org will return the line to you, and to get the value of some columns, you To get the value, run row [int] .value needs to be run.

For more information, you should see the PDF file (page 9 inspect a sheet).

  Import xlrd workbook = xlrd.open_workbook (file name) # This will get you the first sheet in the workbook. Worksheet = Workbook.Sheet_by_name (Workbook.Sheat_Name () [0]) for index in category (Worksheet.nro): Try: line = worksheet.ro (index) line_value = [column.value for row in call] # Now the row_fund is a column in which all column values ​​are printed except for line rows [3: 99]: pass   

To write the data in the Excel file, you xlwt package.

BTW, it seems that you are doing something like reading from Excel ... some work ... write excel ... i have a look at numpy I would recommend putting , Characters or R . When I usually use data, I use R and it saves me a lot of time.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -