Skip to content

Commit 85e360d

Browse files
authoredFeb 7, 2023
Merge pull request #142 from ONSdigital/extrenuous_drop
Extraneous Drop
2 parents a805546 + 46f2b32 commit 85e360d

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed
 

‎docs/release-notes/9.1.1.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Statistical Methods Library 9.1.1
2+
3+
Release date: 2023-02-07
4+
5+
## Synopsis
6+
7+
This release removes a piece of unused code in back data handling.
8+
9+
## Changes
10+
11+
In the Ratio of Means imputation method, an attempt was made to drop a
12+
non-existent column (the input target column) from the back data. This was
13+
silently failing and so has been removed.
14+
15+
## Notes
16+
17+
This change has no functional impact.

‎pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "statistical_methods_library"
3-
version = "9.1.0"
3+
version = "9.1.1"
44
description = ""
55
authors = ["Your Name <you@example.com>"]
66
license = "MIT"

‎statistical_methods_library/imputation/ratio_of_means.py

-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ def prepare_df(df: DataFrame) -> DataFrame:
290290
& (col(marker_col) != lit(Marker.BACKWARD_IMPUTE.value))
291291
)
292292
)
293-
.drop("target")
294293
.withColumn("previous_period", calculate_previous_period(col("period")))
295294
.withColumn("next_period", calculate_next_period(col("period")))
296295
)

0 commit comments

Comments
 (0)