|
5 | 5 | related to inference and not otherwise tested in types/test_common.py
|
6 | 6 |
|
7 | 7 | """
|
8 |
| -from warnings import catch_warnings, simplefilter |
9 | 8 | import collections
|
10 |
| -import re |
11 |
| -from datetime import datetime, date, timedelta, time |
| 9 | +from datetime import date, datetime, time, timedelta |
12 | 10 | from decimal import Decimal
|
13 |
| -from numbers import Number |
14 | 11 | from fractions import Fraction
|
| 12 | +from numbers import Number |
| 13 | +import re |
| 14 | +from warnings import catch_warnings, simplefilter |
| 15 | + |
15 | 16 | import numpy as np
|
16 |
| -import pytz |
17 | 17 | import pytest
|
18 |
| -import pandas as pd |
19 |
| -from pandas._libs import lib, iNaT, missing as libmissing |
20 |
| -from pandas import (Series, Index, DataFrame, Timedelta, |
21 |
| - DatetimeIndex, TimedeltaIndex, Timestamp, |
22 |
| - Panel, Period, Categorical, isna, Interval, |
23 |
| - DateOffset) |
24 |
| -from pandas import compat |
25 |
| -from pandas.compat import u, PY2, StringIO, lrange |
| 18 | +import pytz |
| 19 | + |
| 20 | +from pandas._libs import iNaT, lib, missing as libmissing |
| 21 | +from pandas.compat import PY2, StringIO, lrange, u |
| 22 | +import pandas.util._test_decorators as td |
| 23 | + |
26 | 24 | from pandas.core.dtypes import inference
|
27 | 25 | from pandas.core.dtypes.common import (
|
28 |
| - is_timedelta64_dtype, |
29 |
| - is_timedelta64_ns_dtype, |
30 |
| - is_datetime64_dtype, |
31 |
| - is_datetime64_ns_dtype, |
32 |
| - is_datetime64_any_dtype, |
33 |
| - is_datetime64tz_dtype, |
34 |
| - is_number, |
35 |
| - is_integer, |
36 |
| - is_float, |
37 |
| - is_bool, |
38 |
| - is_scalar, |
39 |
| - is_scipy_sparse, |
40 |
| - ensure_int32, |
41 |
| - ensure_categorical) |
| 26 | + ensure_categorical, ensure_int32, is_bool, is_datetime64_any_dtype, |
| 27 | + is_datetime64_dtype, is_datetime64_ns_dtype, is_datetime64tz_dtype, |
| 28 | + is_float, is_integer, is_number, is_scalar, is_scipy_sparse, |
| 29 | + is_timedelta64_dtype, is_timedelta64_ns_dtype) |
| 30 | + |
| 31 | +import pandas as pd |
| 32 | +from pandas import ( |
| 33 | + Categorical, DataFrame, DateOffset, DatetimeIndex, Index, Interval, Panel, |
| 34 | + Period, Series, Timedelta, TimedeltaIndex, Timestamp, compat, isna) |
42 | 35 | from pandas.util import testing as tm
|
43 |
| -import pandas.util._test_decorators as td |
44 | 36 |
|
45 | 37 |
|
46 | 38 | @pytest.fixture(params=[True, False], ids=str)
|
|
0 commit comments