We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f86b73 commit c9c9d95Copy full SHA for c9c9d95
1 file changed
src/electiondata/analyze/__init__.py
@@ -633,7 +633,6 @@ def assign_anomaly_score(data: pd.DataFrame) -> pd.DataFrame:
633
"""
634
635
:param data: dataframe with required columns:
636
- "ReportingUnitType",
637
"ParentReportingUnit_Id",
638
"ParentName",
639
"ParentReportingUnitType",
@@ -642,11 +641,10 @@ def assign_anomaly_score(data: pd.DataFrame) -> pd.DataFrame:
642
641
"Contest_Id",
643
"Contest",
644
"Selection",
645
- "Selection_Id",
646
"contest_type",
647
"contest_district_type",
648
"Count",
649
- and possibly other columns, such as: "Party"
+ "Selection_Id",
650
651
:return: dataframe obtained by appending columns to <data>:
652
"score": value between 0 and 1 (1 is more anomalous) indicating, among all reporting units for the Contest,
0 commit comments