Use file.content() or file.download_to() -> to data frame
Using Python SDK in a Juypter Notebook
Say I have an Excel or CSV on Box. I need the contents of the file and put it into a pandas data frame for further processing.
Is it better to use file.content() or temporarily download the file to a local network drive?
-
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
サインインしてコメントを残してください。
コメント
2件のコメント