rbartpackages.base.DataFrame

class rbartpackages.base.DataFrame(*args, **kwargs)[source]

Duck type of the dataframe arguments accepted by the wrappers.

Both pandas.DataFrame and polars.DataFrame match; they are converted to R data frames, with categorical columns becoming factors.

property columns: Iterable[str][source]

Column names.

property shape: tuple[int, ...][source]

Frame dimensions.

to_numpy()[source]

Convert to a numpy array.

Return type:

ndarray