Skip to content

Commit

Permalink
Add "median" option to group by and pivot plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
nickzoic committed Sep 19, 2024
1 parent 44dd79f commit 689c12f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions countess/plugins/group_by.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class ColumnMultiParam(TabularMultiParam):
max = BooleanParam("Max")
sum = BooleanParam("Sum")
mean = BooleanParam("Mean")
median = BooleanParam("Median")


class GroupByPlugin(PandasConcatProcessPlugin):
Expand Down
2 changes: 1 addition & 1 deletion countess/plugins/pivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class PivotPlugin(PandasProcessPlugin):
link = "https://countess-project.github.io/CountESS/included-plugins/#pivot-tool"

columns = PerColumnArrayParam("Columns", ChoiceParam("Role", "Drop", choices=["Index", "Pivot", "Expand", "Drop"]))
aggfunc = ChoiceParam("Aggregation Function", "sum", choices=["sum", "mean", "min", "max"])
aggfunc = ChoiceParam("Aggregation Function", "sum", choices=["sum", "mean", "median", "min", "max"])

input_columns: Dict[str, np.dtype] = {}

Expand Down

0 comments on commit 689c12f

Please sign in to comment.