We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
My columns are a multi-index. That seems to break df2gspread?
File ~/miniconda3/envs/py39/lib/python3.9/site-packages/df2gspread/df2gspread.py:125, in upload(df, gfile, wks_name, col_names, row_names, clean, credentials, start_cell, df_size, new_sheet_dimensions) 123 cell_list = wks.range('%s%s:%s%s' % (first_col, start_row, last_col, start_row)) 124 for idx, cell in enumerate(cell_list): --> 125 cell.value = df.columns.astype(str)[idx] 126 wks.update_cells(cell_list) 128 # Addition of row names File ~/miniconda3/envs/py39/lib/python3.9/site-packages/pandas/core/indexes/multi.py:3733, in MultiIndex.astype(self, dtype, copy) 3731 raise NotImplementedError(msg) 3732 elif not is_object_dtype(dtype): -> 3733 raise TypeError( 3734 "Setting a MultiIndex dtype to anything other than object " 3735 "is not supported" 3736 ) 3737 elif copy is True: 3738 return self._view() TypeError: Setting a MultiIndex dtype to anything other than object is not supported
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My columns are a multi-index. That seems to break df2gspread?
The text was updated successfully, but these errors were encountered: