startrow += iimportpandasaspdifindexandisinstance(df.columns, pd.MultiIndex): ref['skiprows'] = [i +1] startrow +=1ifindex: i = _index_levels(df.index) ref['index_col'] = list(range(i)) startcol += i landing = xlrd.cellname(startrow, startcol) ref = json.dumps(ref, sort_k...