mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +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
|
||||
--------
|
||||
>>> s = ed.DataFrame('http://localhost:9200', 'flights')['AvgTicketPrice']
|
||||
>>> int(s.median())
|
||||
640
|
||||
>>> m = int(s.median())
|
||||
>>> 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)
|
||||
return results.squeeze()
|
||||
|
Loading…
x
Reference in New Issue
Block a user