trnslator.energyseries.EnergySeries.from_sqlite

classmethod EnergySeries.from_sqlite(df, name=None, base_year=2018, units=None, normalize=False, sort_values=False, ascending=False, concurrent_sort=False, to_units=None, agg_func='sum')[source]

Create a.

Parameters
  • df (DataFrame) –

  • name

  • base_year

  • units

  • normalize

  • sort_values

  • ascending

  • concurrent_sort

  • to_units

  • agg_func (callable) –

    The aggregation function to use in the case that multiple values have the same index value. If a function, must either work when passed a DataFrame or when passed to DataFrame.apply. For a DataFrame, can pass a dict, if the keys are DataFrame column names.

    Accepted Combinations are:
    • string function name

    • function

    • list of functions

    • dict of column names -> functions (or list of functions)