How to work with dataframes?


DataFrames.jl is a very useful package for dealing with data. We don't use it explicitly in any packages of JuliaDiffusionBayes, however, it is likely that some users of JuliaDiffusionBayes packages will want to store their observations in a DataFrame.

If your raw data is stored in two columns:

raw_data = DataFrame(
    t = [...],
    x = [...],
)

you can simply pass those two columns to load_data:

obs_scheme = ...
data = load_data(obs_scheme, raw_data.t, raw_data.x)

You may then construct a dataframe with your decorated data

df = DataFrame(data=data)