Skip to content

Latest commit

 

History

History
229 lines (189 loc) · 10.6 KB

CHANGELOG.rst

File metadata and controls

229 lines (189 loc) · 10.6 KB
.. currentmodule:: pandas_indexing

Changelog

v0.6.1 (2024-12-01)

v0.6.0 (2024-10-24)

v0.5.2 (2024-08-24)

  • Bumps minimum python version to 3.9 (which is close to EOL, anyway)

  • Improve :mod:`~selectors` to arbitrarily interact with boolean Series, numpy arrays and callables, ie. 1. pd.Series([True, False]) & isin(model="a") produces the same result as

    isin(model="a") & pd.Series([True, False]) did earlier.

    1. isin(model="a") & (lambda s: s > 2) is now supported as well.
  • Fix a testing incompability introduced by a recent attrs update (24.1.0)

  • Load pint and pint-pandas packages only on first use

v0.5.1 (2024-05-20)

v0.5.0 (2024-04-09)

  • BREAKING: Change :func:`~core.extractlevel` to drop split levels by default and accordingly rename the governing argument from drop=False to keep=False :pull:`53`.
  • Add regex=True argument to :func:`~core.extractlevel` to use templates as manual extraction regex, f.ex. df.pix.extract(variable=r"Emissions\|(?P<gas>.*?)(?:\|(?P<sector>.*?))?", regex=True) will also split Emissions|CO2 to gas = "CO2" and sector = NaN, while df.pix.extract(variable="Emissions|{gas}|{sector}") would have dropped it.
  • Update :func:`~core.projectlevel` to raise KeyError for wrong level names :pull:`52`.

v0.4.2 (2024-04-03)

v0.4.1 (2024-03-20)

v0.4.0 (2023-12-12)

v0.3.1 (2023-09-18)

  • The new :func:`~core.assignlevel` argument ignore_index=True prevents the dataframe and series alignment which became the default in v0.3 (yesterday), since there are valid use cases of the old behaviour :pull:`41`

v0.3 (2023-09-17)

v0.2.10 (2023-08-31)

v0.2.10-b1 (2023-07-26)

v0.2.9 (2023-07-11)

v0.2.8 (2023-06-24)

  • Units can be converted with :func:`~units.convert_unit`, like f.ex. convert_unit(df, "km / h") or with convert_unit(df, {"m / s": "km / h"}) to convert only data with the m / s unit
  • If the openscm-units registry is registered as pint application registry then emission conversion between gas species are possible under the correct contexts:
from pandas_indexing import set_openscm_registry_as_default, convert_unit

ur = set_openscm_registry_as_default()
with ur.context("AR6GWP100"):
    df = convert_unit(df, "Mt CO2e/yr")  # or df = df.idx.convert_unit("Mt CO2e/yr")

v0.2.7 (2023-05-26)

v0.2.6 (2023-05-25)

v0.2.5 (2023-05-04)

v0.2.4 (2023-05-03)

v0.2.3 (2023-05-03)

v0.2.2 (2023-05-02)

v0.2.1 (2023-04-08)

v0.2 (2023-04-07)

v0.1.2 (2023-02-27)

v0.1.1 (2023-02-27)

v0.1 (2023-02-23)

  • Initial release