Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

Uploading Data (not a file) to a Box file

Completed
New post

Comments

2 comments

  • 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
    Comment actions Permalink
  • 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
    Comment actions Permalink

Please sign in to leave a comment.