openpyxl.utils.dataframe module¶
- openpyxl.utils.dataframe.dataframe_to_rows(df, index=True, header=True)[源代码]¶
Convert a Pandas dataframe into something suitable for passing into a worksheet. If index is True then the index will be included, starting one row below the header. If header is True then column headers will be included starting one column to the right. Formatting should be done by client code.