diff --git a/mabel/utils/dates.py b/mabel/utils/dates.py index e6a08c0..1e35645 100644 --- a/mabel/utils/dates.py +++ b/mabel/utils/dates.py @@ -8,11 +8,6 @@ except ImportError: numpy = None -try: - import pandas -except ImportError: - pandas = None - TIMEDELTA_REGEX = ( r"((?P-?\d+)d)?" r"((?P-?\d+)h)?" @@ -79,9 +74,9 @@ def parse_iso( if isinstance(value, numpy.datetime64): value = value.astype(datetime.datetime) input_type = type(value) - if pandas: - if hasattr(value, "to_pydatetime"): - return value.to_pydatetime() + + if hasattr(value, "to_pydatetime"): + return value.to_pydatetime() if input_type == datetime.datetime: return value diff --git a/mabel/version.py b/mabel/version.py index ef97f26..a98c243 100644 --- a/mabel/version.py +++ b/mabel/version.py @@ -1,6 +1,6 @@ # Store the version here so: # 1) we don't load dependencies by storing it in __init__.py # 2) we can import it in setup.py for the same reason -__version__ = "0.6.23" +__version__ = "0.6.24" # nodoc - don't add to the documentation wiki