Module RimuIO
Rimu.RimuIO — ModuleModule to provide file input and output functionality for Rimu. Provides convenience functions:
- RimuIO.save_df(filename, df::DataFrame)Save dataframe in Arrow format.
- RimuIO.load_df(filename)Load Arrow file into dataframe.
- RimuIO.save_dvec(filename, dv)Save dict vector in BSON format.
- RimuIO.load_dvec(filename)Load BSON file into dict vector.
Rimu.RimuIO.load_df — MethodRimuIO.load_df(filename; propagate_metadata = true, add_filename = true) -> DataFrameLoad Arrow file into DataFrame. Optionally propagate metadata to DataFrame and add the file name as metadata.
See also RimuIO.save_df.
Rimu.RimuIO.load_dvec — MethodRimuIO.load_dvec(filename) -> AbstractDVecLoad AbstractDVec stored in BSON.
Rimu.RimuIO.save_df — MethodRimuIO.save_df(filename, df::DataFrame; kwargs...)Save dataframe in Arrow format.
Keyword arguments are passed on to Arrow.write. Compression is enabled by default for large DataFrames (over 10,000 rows).
Table-level metadata of the DataFrame is saved as Arrow metadata (with String value) unless overwritten with the keyword argument metadata.
See also RimuIO.load_df.
Rimu.RimuIO.save_dvec — Method