eland
eland copied to clipboard
Implement datetime range filters
eland.DataFrame and eland.Series, don't currently support datetime range filters. E.g.
f = '%Y-%m-%dT%H:%M:%S'
start = datetime.datetime.strptime('2020-08-14T00:00:00', f)
end = datetime.datetime.strptime('2020-08-14T01:00:00', f)
ed_df[(ed_df['@timestamp']>=start) & (ed_df['@timestamp']<end)]
throws
---------------------------------------------------------------------------
NotImplementedError Traceback (most recent call last)
<ipython-input-61-ab010dca9680> in <module>
5
6
----> 7 e[(e['@timestamp']>=start) & (e['@timestamp']<end)]
~/anaconda3/lib/python3.7/site-packages/eland/series.py in __ge__(self, other)
464 return GreaterEqual(field=self.name, value=other)
465 else:
--> 466 raise NotImplementedError(other, type(other))
467
468 def __le__(self, other: Union[int, float, "Series"]) -> BooleanFilter:
NotImplementedError: (datetime.datetime(2020, 8, 14, 0, 0), <class 'datetime.datetime'>)
Any news on this? I see that it is part of the next milestone but is still at 0%. Is the project dead?
@MyronM95 Thanks for your concern. The project isn't dead, it's in heavy use within and outside of Elastic. We're in the process of finding a new shepard for Eland's development as I currently don't have enough time to contribute the same way I was months ago. Your patience is appreciated and you're welcome to try contributing if a particular feature is very important to you.