Skip to content

Commit c9c9d95

Browse files
committed
document
1 parent 9f86b73 commit c9c9d95

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/electiondata/analyze/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,6 @@ def assign_anomaly_score(data: pd.DataFrame) -> pd.DataFrame:
633633
"""
634634
635635
:param data: dataframe with required columns:
636-
"ReportingUnitType",
637636
"ParentReportingUnit_Id",
638637
"ParentName",
639638
"ParentReportingUnitType",
@@ -642,11 +641,10 @@ def assign_anomaly_score(data: pd.DataFrame) -> pd.DataFrame:
642641
"Contest_Id",
643642
"Contest",
644643
"Selection",
645-
"Selection_Id",
646644
"contest_type",
647645
"contest_district_type",
648646
"Count",
649-
and possibly other columns, such as: "Party"
647+
"Selection_Id",
650648
651649
:return: dataframe obtained by appending columns to <data>:
652650
"score": value between 0 and 1 (1 is more anomalous) indicating, among all reporting units for the Contest,

0 commit comments

Comments
 (0)