brite_etl.abstracts

This is where we put abstracts or base/metaclasses to be used throughout the whole module.

Classes

class Frame(df)[source]

Base class for all frames

Contains methods shared by all frames, and provides default configuration.

Inheritance

Inheritance diagram of Frame

chain
Returns:This frame wrapped in a chain
config

Configuration dict

Returns:a dict that has merged the frame config with the base frame class config.
Return type:dict
df

Original pandas dataframe

Returns:The actual dataframe being wrapped by this class
Return type:pandas.DataFrame
class FrameDataSource(source)[source]

Base class for fetching frame data.

Every data source used by brite_etl.lib.FrameSet must use this class as a metaclass!

These are swappable classes that let us get a pandas dataframe of data when the user requests whatever frame. If you’re using the BriteDataSource, it will call BriteDataSource().get(‘framename’). If you’re using CsvSource, it will read the csv according to the paths you give it.

Parameters:source – The source for this data.

Inheritance

Inheritance diagram of FrameDataSource