From 0f989f79e81b9413077a9aca10d19b37fd7d14cc Mon Sep 17 00:00:00 2001 From: dcherian Date: Fri, 23 Aug 2019 16:16:11 -0700 Subject: [PATCH] whitespace. --- xarray/core/variable.py | 1 - 1 file changed, 1 deletion(-) diff --git a/xarray/core/variable.py b/xarray/core/variable.py index 37bd08059e8..b337fd36d62 100644 --- a/xarray/core/variable.py +++ b/xarray/core/variable.py @@ -236,7 +236,6 @@ def _as_array_or_item(data): TODO: remove this (replace with np.asarray) once these issues are fixed """ data = np.asarray(data) - if data.ndim == 0: if data.dtype.kind == "M": data = np.datetime64(data, "ns")