0

I'm trying to upload a pandas dataframe to google sheets, and I'm following this step by step guide:https://towardsdatascience.com/using-python-to-push-your-pandas-dataframe-to-google-sheets-de69422508f

I'm using the df2gspread to upload the dataframe, however the I get an error saying this attribute:

https://df2gspread.readthedocs.io/en/latest/examples.html#df2gspread.df2gspread.upload

doesn't exist?

picture of the error here

I tried df2gspread.df2gspread.upload, which then gave me this errorscreenshot here

I have tried

dict(vars(df2gspread)).keys()

which gave me the output

dict_keys(
    [
        "__name__",
        "__doc__",
        "__package__",
        "__loader__",
        "__spec__",
        "__path__",
        "__file__",
        "__cached__",
        "__builtins__",
    ]
)

Is there a workaround for this?

Laurent
  • 12,287
  • 7
  • 21
  • 37
Aki
  • 137
  • 1
  • 4
  • 17
  • 1
    I invite you to look here: https://stackoverflow.com/questions/61092662/uploading-pandas-dataframe-to-google-spreadsheet – yishairasowsky Dec 08 '22 at 12:11
  • Thank you, the answer seems to suggest that I'm not installing it correctlly, however when I put You are not importing the package properly. Just do this from df2gspread import df2gspread as d2g I get the error : ModuleNotFoundError: No module named 'df2gspread' – Aki Dec 08 '22 at 14:48
  • 1
    https://www.roseindia.net/answers/viewqa/pythonquestions/73396-ModuleNotFoundError-No-module-named-df2gspread.html#:~:text=pip%20install%20df2gspread – yishairasowsky Dec 21 '22 at 23:34

0 Answers0