Skip to content

Commit a046792

Browse files
BUG: avoid relying on external packaging package in interchange protocol (#47939)
1 parent ad52416 commit a046792

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/interchange/buffer.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
from __future__ import annotations
22

33
import numpy as np
4-
from packaging import version
54

65
from pandas.core.interchange.dataframe_protocol import (
76
Buffer,
87
DlpackDeviceType,
98
)
9+
from pandas.util.version import Version
1010

11-
_NUMPY_HAS_DLPACK = version.parse(np.__version__) >= version.parse("1.22.0")
11+
_NUMPY_HAS_DLPACK = Version(np.__version__) >= Version("1.22.0")
1212

1313

1414
class PandasBuffer(Buffer):

0 commit comments

Comments
 (0)