Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to read data from an Excel sheet in Python using Xlsxwriter? If so how?

I'm doing the following calculation.

worksheet.write_formula('E5', '=({} - A2)'.format(number))

I want to print the value in E5 on the console. Can you help me to do it? Is it possible to do it with Xlsxwriter or should I use a different library to the same?

like image 606
Ambi Avatar asked Dec 10 '13 09:12

Ambi


People also ask

Is XlsxWriter included in Python?

XlsxWriter is a Python module for creating Excel XLSX files. (Sample code to create the above spreadsheet.) XlsxWriter is a Python module that can be used to write text, numbers, formulas and hyperlinks to multiple worksheets in an Excel 2007+ XLSX file.

Does pandas use XlsxWriter?

You can use XlsxWriter as an engine for Pandas ExcelWriter class to output a DataFrame to Excel.


1 Answers

It is not possible to read data from an Excel file using XlsxWriter.

There are some alternatives listed in the documentation.

like image 136
jmcnamara Avatar answered Oct 03 '22 04:10

jmcnamara