Skip to content

Commit

Permalink
Add Boxplot aggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
sethmlarson committed Sep 10, 2020
1 parent 2087f46 commit 73b8eda
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elasticsearch_dsl/aggs.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,10 @@ class ExtendedStats(Agg):
name = "extended_stats"


class Boxplot(Agg):
name = "boxplot"


class GeoBounds(Agg):
name = "geo_bounds"

Expand Down
6 changes: 6 additions & 0 deletions test_elasticsearch_dsl/test_aggs.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,9 @@ def test_geotile_grid_aggregation():
a = aggs.GeotileGrid(**{"field": "centroid", "precision": 3})

assert {"geotile_grid": {"field": "centroid", "precision": 3}} == a.to_dict()


def test_boxplot_aggregation():
a = aggs.Boxplot(field="load_time")

assert {"boxplot": {"field": "load_time"}} == a.to_dict()

0 comments on commit 73b8eda

Please sign in to comment.