Skip to content

Commit cf53cc0

Browse files
committed
REF: Refactor imports in frame.py and update test imports in test_to_numpy.py
1 parent b1f64c8 commit cf53cc0

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
is_array_like,
9494
is_bool_dtype,
9595
is_dataclass,
96+
is_datetime64_any_dtype,
9697
is_dict_like,
9798
is_float,
9899
is_float_dtype,
@@ -103,10 +104,9 @@
103104
is_list_like,
104105
is_scalar,
105106
is_sequence,
107+
is_timedelta64_dtype,
106108
needs_i8_conversion,
107109
pandas_dtype,
108-
is_timedelta64_dtype,
109-
is_datetime64_any_dtype,
110110
)
111111
from pandas.core.dtypes.concat import concat_compat
112112
from pandas.core.dtypes.dtypes import (

pandas/tests/frame/methods/test_to_numpy.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
import numpy as np
22
import pytest
33

4-
from pandas import DataFrame, Timestamp, date_range, NaT
4+
from pandas import (
5+
DataFrame,
6+
NaT,
7+
Timestamp,
8+
date_range,
9+
)
510
import pandas._testing as tm
611

712

0 commit comments

Comments
 (0)