Uploading Data (not a file) to a Box file

Terminée
New post

Commentaires

2 commentaires

  • France

    Hi Gary, 

    Welcome to the Box Community, I'm happy to help!

    This would be something our Product Support team would like to look into and may require specific account information. 

    I've gone ahead and created a ticket for you so that an agent can work directly with you on looking into this. 

    Kindly check your email for details and updates.

    Best regards, 

    0
    Actions pour les commentaires Permalien
  • Gary Culshaw

    I have the answer!

     

        csv_string = df.to_csv(index=False)
        stream = StringIO()
        stream.write(csv_string)
        stream.seek(0)
        new_file = client.folder(Box_Folder_ID).upload_stream(stream,Name_of_Box_File)

     

    0
    Actions pour les commentaires Permalien

Vous devez vous connecter pour laisser un commentaire.