mirror of
https://github.com/elastic/eland.git
synced 2025-07-24 00:00:39 +08:00
Fixed test for mean using ES 8.9.0
This commit is contained in:
parent
08b7fac32b
commit
932092c0e5
@ -1486,8 +1486,9 @@ class Series(NDFrame):
|
|||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
>>> s = ed.DataFrame('http://localhost:9200', 'flights')['AvgTicketPrice']
|
>>> s = ed.DataFrame('http://localhost:9200', 'flights')['AvgTicketPrice']
|
||||||
>>> int(s.median())
|
>>> m = int(s.median())
|
||||||
640
|
>>> print(m == 639 or m == 640) # required for ES >= 8.9, see https://github.com/elastic/elasticsearch/pull/96904
|
||||||
|
True
|
||||||
"""
|
"""
|
||||||
results = super().median(numeric_only=numeric_only)
|
results = super().median(numeric_only=numeric_only)
|
||||||
return results.squeeze()
|
return results.squeeze()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user