Storing a DataFrame as a file in a project
Store the content of the given DataFrame as a new project file with the given name in the object store service.
Restriction:
- Be sure that you save the file with a file extension. Files that are saved without an extension from a notebook cannot be previewed in the project.
- The object storage provided with DSX Local is intended for smaller data sets and temporary storage. For Scala notebooks, you can write up to 250 MB to object storage; for Python, up to 5 GB; for R, up to 2 GB. For larger data sets, use a database for storage.
- Scala syntax
-
storeDataFrameAsObjectStoreFile(pc: ProjectContext, df: DataFrame, filename: String): Boolean - Python syntax
-
store_dataframe_as_objectstore_file(pc, df, filename): - R syntax
-
storeDataFrameAsObjectStoreFile(pc, df, fileName)