Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Feb 21, 2025
1 parent 026810b commit 0fa4a05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions holoviews/element/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
if TYPE_CHECKING:
from typing import TypeVar

import pandas as pd

Array = TypeVar("Array", np.ndarray, pd.api.extensions.ExtensionArray)


Expand Down Expand Up @@ -349,6 +351,8 @@ def connect_edges(graph):


def sort_arr(arr: Array) -> Array:
import pandas as pd

if isinstance(arr, pd.api.extensions.ExtensionArray):
return arr[arr.argsort()]
return np.sort(arr)
1 change: 0 additions & 1 deletion holoviews/streams.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ def __init__(self, data, length=1000, index=True, following=True, **params):


def verify(self, x):
""" Verify consistency of dataframes that pass through this stream """
"""Verify consistency of dataframes that pass through this stream
"""
Expand Down

0 comments on commit 0fa4a05

Please sign in to comment.