zvt.contract.api.df_to_db

zvt.contract.api.df_to_db(df: pandas.core.frame.DataFrame, data_schema: sqlalchemy.orm.decl_api.DeclarativeMeta, provider: str, force_update: bool = False, sub_size: int = 5000, drop_duplicates: bool = True) object

store the df to db

Parameters
  • df – data with columns of the schema

  • data_schema – data schema

  • provider – data provider

  • force_update – whether update the data with id existed

  • sub_size – update batch size

  • drop_duplicates – whether drop duplicates

Returns