# Can eland (python) filter on datetime64 fields?

**URL:** <https://discuss.elastic.co/t/can-eland-python-filter-on-datetime64-fields/324698>\
**Category:** Elasticsearch\
**Created:** [February 4, 2023, 2:07am UTC](https://discuss.elastic.co/t/can-eland-python-filter-on-datetime64-fields/324698 "2023-02-04T02:07:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike\_haberman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_haberman/32/116769_2.png) [@mike\_haberman](https://discuss.elastic.co/u/mike_haberman)\
**Post date:** [February 4, 2023, 2:07am UTC](https://discuss.elastic.co/t/can-eland-python-filter-on-datetime64-fields/324698/1 "2023-02-04T02:07:32Z")

</div>

I get a `NotImplementedError` error for when I try to mask a field that's a datetime field:

```auto
s_t = pd.to_datetime("2023-02-03T23:28:00", utc=True) # UTC
t_m = (df['start'] >= s_t)

File /opt/conda/lib/python3.9/site-packages/eland/series.py:491, in Series. __ge__ (self, other)
    489 return GreaterEqual(field=self.name, value=other)
    490 else:
--> 491 raise NotImplementedError(other, type(other))

NotImplementedError: (Timestamp('2023-02-03 23:28:00+0000', tz='UTC'), <class 'pandas._libs.tslibs.timestamps.Timestamp'>)

```

Is this just the way it is for fields with type datetime?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 4, 2023, 2:07am UTC](https://discuss.elastic.co/t/can-eland-python-filter-on-datetime64-fields/324698/2 "2023-03-04T02:07:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
