generator created by using dataframe_to_rows on an empty dataframe with multiindex for openpyxl == 3.1.2 gives IndexError: list index out of range when trying to convert to list
When dataframes_to_rows is used with an empty dataframe with multiindex for openpyxl, the generator object created cannot be converted into a list initially. The first time list(generator_object) is called an error is given IndexError: list index out of range, however the second time list(generator_object) is called there is no issue, an empty list is given