bayesline.api.equity.AsyncUploaderApi.stage_df

bayesline.api.equity.AsyncUploaderApi.stage_df#

abstract async AsyncUploaderApi.stage_df(name: str, df: DataFrame, parser: str | None = None, replace: bool = False) UploadStagingResult#

Stages the dataframe for upload under the given name.

Parameters#

name: str

The name of the dataframe to stage.

df: pl.DataFrame

The dataframe to stage.

parser: str, optional

The parser to use. If None will check all parsers.

replace: bool, optional

If True will replace a possible existing staging with the same name. If False a name clash will result in a failed staging result.

Raises#

UploadError

if the given name already exists

Returns#

UploadStagingResult