Skip to content

Commit 616f83c

Browse files
committed
reduce pandas.core usage [skip-ci]
1 parent d02b580 commit 616f83c

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

pandas/core/interchange/column.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
from pandas.errors import NoBufferPresent
1010
from pandas.util._decorators import cache_readonly
1111

12-
from pandas.core.dtypes.dtypes import (
12+
from pandas.core.dtypes.dtypes import BaseMaskedDtype
13+
14+
import pandas as pd
15+
from pandas import (
1316
ArrowDtype,
14-
BaseMaskedDtype,
1517
DatetimeTZDtype,
1618
)
17-
18-
import pandas as pd
1919
from pandas.api.types import is_string_dtype
2020
from pandas.core.interchange.buffer import (
2121
PandasBuffer,

pandas/core/interchange/utils.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010

1111
from pandas._libs import lib
1212

13-
from pandas.core.dtypes.dtypes import (
13+
from pandas import (
1414
ArrowDtype,
15+
BooleanDtype,
1516
CategoricalDtype,
1617
DatetimeTZDtype,
1718
)
1819

19-
from pandas.core.arrays.boolean import BooleanDtype
20-
2120
if typing.TYPE_CHECKING:
2221
from pandas._typing import DtypeObj
2322

0 commit comments

Comments
 (0)