Skip to content

Releases: ONSBigData/precon

Release v0.7.0-alpha.5

17 Dec 14:54

Choose a tag to compare

Pre-release

API changes

  • Changed base_price_ffill_shift to just ffill_shift
  • Added quality adjustment to index_calculator
  • Modified index_calculator so that it now accepts base_prices as a parameter, and fills and shifts them when it does.

Bugs

  • Fixed in get_base_prices where .eq() method was being used instead of isin().

Release v0.7.0-alpha.4

01 Dec 12:37

Choose a tag to compare

Pre-release
  • Fixed bug in get_base_prices
  • Added function base_price_fill_shift

Release v0.7.0-alpha.3

01 Dec 10:21

Choose a tag to compare

Pre-release
  • Changed get_base_prices so it now fills within year, and also shifts the values as default behaviour.
  • The aggregate function now sets weights where indices are 'inf' to zero.
  • The aggregate function ensures periods where all indices are invalid are set to NaN rather than zero to avoid
    a ZeroDivisionError and return NaN instead.

Release v0.7.0-alpha.2

20 Nov 13:58

Choose a tag to compare

Pre-release
  • Fixed bug in subset_shared_axis: now using method .equals() instead of non-existent method .eq().

Release v0.7.0-alpha.1

20 Nov 13:11

Choose a tag to compare

Pre-release
  • Added a subset step to aggregate and impute_base_prices to reduce DataFrame arg sizes when functions are applied using groupby.

Release v0.7.0-alpha.0

05 Nov 11:13

Choose a tag to compare

Pre-release

Alpha testing for...

Added new aggregation functionality:

  • Added the aggregate_level function to aggregate by a grouping.
  • Added the aggregate_up_hierarchy function to aggregate up hierarchy given by MultiIndex levels.

Release v0.6.2

02 Nov 16:00
f82e33b

Choose a tag to compare

Bug fix: fixed an issue with the round_and_adjust function.

Release v0.6.1

15 Oct 13:30
1c7a970

Choose a tag to compare

Bug fixes

  • Fix affecting impute_base_prices function
  • Fixed the API definition within init.py

Other

  • Updated install instructions in README

Release v0.6.0

15 Oct 11:40

Choose a tag to compare

New features

  • Added functionality for impute_base_prices function accepting the to_impute argument
  • aggregation function now works with mean or geometric mean depending on method argument
  • The function calculate_index introduced offering various different index methods
  • The index_calculator pipeline function offers an end-to-end pipeline for calculating indices with optional base price imputation