Module RimuIO

Rimu.RimuIO.load_dfMethod
RimuIO.load_df(filename; propagate_metadata = true, add_filename = true) -> DataFrame

Load Arrow file into DataFrame. Optionally propagate metadata to DataFrame and add the file name as metadata.

See also RimuIO.save_df.

source
Rimu.RimuIO.save_dfMethod
RimuIO.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.

source
Rimu.RimuIO.save_dvecMethod
RimuIO.save_dvec(filename, dvec)

Save dvec in BSON format.

Notes

  • Only the localpart is saved. You may need to re-wrap the result in MPIData if using MPI.
  • When using this function with MPI, make sure to save the vectors from different ranks to different files, e.g. by saving as RimuIO.save_dvec("filename-$(mpi_rank()).bson", dvec).
source

Index