Open epogrebnyak opened 9 years ago
Less sophisticated approach, just change cell fornmatting in column A
TODO: may change formatting of the columns http://xlsxwriter.readthedocs.org/en/latest/example_pandas_column_formats.html#ex-pandas-column-formats http://stackoverflow.com/questions/17069694/writing-xlwt-dates-with-excel-date-format http://stackoverflow.com/questions/9920935/easily-write-formatted-excel-from-python-start-with-excel-formatted-use-it-in
do not write second row - inherited from pivot.
column in 'variables' sheet in kep.xls(x) need more width
Task copied from commit comments:
in kep.xlsx the first row has new formatting, but first column in formatted wrong:
@Fak3 - please move this work to a new branch, and revert commits related to this problem in master
moved to pretty_xlsx branch
in kep.xlsx the first row has new formatting, but first column in formatted wrong
First column on your screenshot is formatted exactly as written in the code. What is wrong?
'bold': True,
'font_name': 'Arial',
'font_size': 10,
'align': 'center',
'border': 1
First column must be "YYYY-MM-DD", in date format
Input:
Output:
Interface function:
Behaviour:
From first sheet of format file '_kep-format.xls' read format of first n (n=3) rows. Apply formatting to n rows in new file. Apply n-th row format to all other rows. Intent: apply formatting of headers to headers and formatting of rows to row.
Links: