Skip to content

Commit

Permalink
Replaced pandas usage with numpy for datetime
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardogsilva committed Dec 13, 2023
1 parent f74e874 commit 9cad6bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pygeoapi/provider/xarray_edr.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import logging

import numpy as np
import pandas as pd

from pygeoapi.provider.base import ProviderNoDataError, ProviderQueryError
from pygeoapi.provider.base_edr import BaseEDRProvider
Expand Down Expand Up @@ -268,7 +267,7 @@ def _make_datetime(self, datetime_):
LOGGER.debug('Reversing slicing from high to low')
return slice(end, begin)
else:
return pd.Timestamp(datetime_)
return np.datetime64(datetime_)

def _get_time_range(self, data):
"""
Expand Down

0 comments on commit 9cad6bf

Please sign in to comment.