Closed perl-girl closed 6 years ago
Can you provide a copy-pastable code-snippet that produces an error?
What version of pandas?
Name: pandas Version: 0.22.0
dataFrame.index.values is a tuple
from pandas import DataFrame, MultiIndex, ExcelWriter
def DF2Excel(self, dataFrame, filename='output.xlsx'):
writer = ExcelWriter(filename)
names = dataFrame.index.values
dataFrame.to_excel(writer,index_label=names,merge_cells=False)
writer.save()
See http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports for tips on writing a reproducible example. Let us know if you can provide one.
Problem description
self.index_label can be an array, list, Index or tuple, but boolean values of arrays are ambiguous. Should be changed to
Expected Output
Formatted excel cell
Output of
pandas/io/formats/excel.get_formatted_cells