Cache User's Dataframe from Notebook
A user-made data frame can also be cached using the below API. It will be stored in
the datastudio server in location :
$DS_HOME/work/ftpshare/mmg/workspace_name/cached/tag. The dataset
will be saved as a parquet file with name cached_tag.parquet.
Note:
This dataframe is not related to dataset created from UI. This is independent of dataset metadata.Table 8-11 Cache User's Dataframe from Notebook
| API | Notebook Script | Notes/Input |
|---|---|---|
| Caching Data Frame |
from mmg.datasets import cache_df path=cache_df(df, tag) path |
df = dataframe to be cached - pandas dataframe tag - string |