We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad52416 commit a046792Copy full SHA for a046792
pandas/core/interchange/buffer.py
@@ -1,14 +1,14 @@
1
from __future__ import annotations
2
3
import numpy as np
4
-from packaging import version
5
6
from pandas.core.interchange.dataframe_protocol import (
7
Buffer,
8
DlpackDeviceType,
9
)
+from pandas.util.version import Version
10
11
-_NUMPY_HAS_DLPACK = version.parse(np.__version__) >= version.parse("1.22.0")
+_NUMPY_HAS_DLPACK = Version(np.__version__) >= Version("1.22.0")
12
13
14
class PandasBuffer(Buffer):
0 commit comments