|
3 | 3 | """
|
4 | 4 | from functools import partial
|
5 | 5 |
|
6 |
| -import numpy as np |
7 |
| - |
8 | 6 | from pandas._libs.lib import infer_dtype
|
9 |
| -from pandas._libs.tslibs.timedeltas import Timedelta |
10 |
| -from pandas._libs.tslibs.timestamps import Timestamp |
11 | 7 |
|
12 | 8 | from pandas.core.dtypes.common import (
|
13 | 9 | _NS_DTYPE, ensure_int64, is_categorical_dtype, is_datetime64_dtype,
|
14 | 10 | is_datetime64tz_dtype, is_datetime_or_timedelta_dtype, is_integer,
|
15 | 11 | is_scalar, is_timedelta64_dtype)
|
16 |
| -from pandas.core.dtypes.missing import isna |
17 | 12 |
|
| 13 | +from pandas import ( |
| 14 | + Categorical, Index, Interval, IntervalIndex, Timedelta, Timestamp, isna, |
| 15 | + np, to_datetime, to_timedelta) |
18 | 16 | import pandas.core.algorithms as algos
|
19 |
| -from pandas.core.arrays.categorical import Categorical |
20 |
| -from pandas.core.arrays.interval import Interval |
21 |
| -from pandas.core.index import Index |
22 |
| -from pandas.core.indexes.interval import IntervalIndex |
23 | 17 | import pandas.core.nanops as nanops
|
24 | 18 | from pandas.core.series import Series
|
25 |
| -from pandas.core.tools.datetimes import to_datetime |
26 |
| -from pandas.core.tools.timedeltas import to_timedelta |
27 | 19 |
|
28 | 20 |
|
29 | 21 | def cut(x, bins, right=True, labels=None, retbins=False, precision=3,
|
|
0 commit comments