Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
poplarShift committed Feb 26, 2019
1 parent cd3f01d commit 89e0c2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions holoviews/core/util.py
Expand Up @@ -1097,11 +1097,11 @@ def unique_array(arr):
if not len(arr):
return arr
elif pd:
datetime_casted = [
datetime_cast = [
pd.Timestamp(i).to_datetime64() if isinstance(i, datetime_types)
else i for i in arr
]
return datetime_casted
return pd.unique(datetime_cast)
else:
arr = np.asarray(arr)
_, uniq_inds = np.unique(arr, return_index=True)
Expand Down

0 comments on commit 89e0c2a

Please sign in to comment.