Welcome to the new Box Support website. Check out all the details here on what’s changed.

Use file.content() or file.download_to() -> to data frame

New post

Comments

2 comments

  • jcleblanc

    Hi ,

     

    file.content() will download the file content into a local variable. If you can inject the file content directly into the data frame that way then it'll be the easiest method. If the frame needs to reference a local file in the file system then save the content to a local file.

     

    - Jon

    0
    Comment actions Permalink
  • mcha54

     Thank you! Do you know if content() will retry if there's a connection issue during the process? Some of the CSV/Excel files we'd like to read are large files, a bit worried about lost bytes if we use content(). Or will it just fail and return an error code?

    0
    Comment actions Permalink

Please sign in to leave a comment.