Bach

Bach is Objectiv’s data modeling library to build & compose models with familiar pandas-like dataframe operations in your notebook. It uses an SQL abstraction layer that enables models to run on the full dataset. As all data storage and processing is handled by the database, local memory does not limit the size of the data that can be analyzed. See more details on this in the Core Concepts. Any model you build can subsequently be output to SQL with a single command, for use in tools like BI or dbt.

Bach also specifically includes a set of operations to work with datasets that embrace the open analytics taxonomy.

The package can be installed from PyPI:

pip install objectiv-bach

How to use

Once your app is tracking data, follow the steps in the examples to work with Bach.

The two main data classes in Bach are the DataFrame and Series:

  • A DataFrame represents data in a tabular form, with all rows having the same columns, and each column having a specific data type and a distinct name.
  • A Series object represents a single column in a DataFrame, with different subclasses per data type that allow for type specific operations.