7368b2a4e8c6b32b975a62d64efb65bbd6bd1df1,pandas/io/formats/excel.py,ExcelFormatter,_format_header_mi,#ExcelFormatter#,527
Before Change
values = levels.take(level_codes)
for i in spans:
if spans[i] > 1:
yield ExcelCell(
lnum,
coloffset + i + 1,
values[i],
self.header_style,
lnum,
coloffset + i + spans[i],
)
else:
yield ExcelCell(
lnum, coloffset + i + 1, values[i], self.header_style
)
After Change
zip(level_lengths, columns.levels, columns.codes)
):
values = levels.take(level_codes)
for i, span_val in spans.items() :
spans_multiple_cells = span_val > 1
yield ExcelCell(
row=lnum,
col=coloffset + i + 1,
val=values[i],
style=self.header_style,
mergestart=lnum if spans_multiple_cells else None,
mergeend=(
coloffset + i + span_val if spans_multiple_cells else None
) ,
)
else:
// Format in legacy format with dots to indicate levels.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: pandas-dev/pandas
Commit Name: 7368b2a4e8c6b32b975a62d64efb65bbd6bd1df1
Time: 2020-11-24
Author: 41443370+ivanovmg@users.noreply.github.com
File Name: pandas/io/formats/excel.py
Class Name: ExcelFormatter
Method Name: _format_header_mi
Project Name: dataiku/dataiku-contrib
Commit Name: b5c692e1a3086661ee1bb9e2001ef7adedde6b82
Time: 2016-01-16
Author: jrouquie@example.com
File Name: freshdesk/python-lib/freshdesk_utils.py
Class Name: FreshdeskConnector
Method Name: generate_rows
Project Name: pandas-dev/pandas
Commit Name: 7368b2a4e8c6b32b975a62d64efb65bbd6bd1df1
Time: 2020-11-24
Author: 41443370+ivanovmg@users.noreply.github.com
File Name: pandas/io/formats/excel.py
Class Name: ExcelFormatter
Method Name: _format_hierarchical_rows
Project Name: explosion/thinc
Commit Name: cc53003029d11839c394a9544a1394b62721869d
Time: 2019-10-18
Author: honnibal+gh@gmail.com
File Name: thinc/extra/wrappers.py
Class Name: PyTorchWrapper
Method Name: use_params