|
1 | 1 | # coding=utf-8
|
2 | 2 | # pylint: disable-msg=E1101,W0612
|
3 | 3 |
|
4 |
| -import pytest |
5 |
| - |
6 |
| -from datetime import datetime, timedelta |
7 | 4 | from collections import OrderedDict
|
| 5 | +from datetime import datetime, timedelta |
8 | 6 |
|
9 |
| -from numpy import nan |
10 | 7 | import numpy as np
|
11 | 8 | import numpy.ma as ma
|
12 |
| -import pandas as pd |
| 9 | +import pytest |
| 10 | +from numpy import nan |
13 | 11 |
|
14 |
| -from pandas.api.types import CategoricalDtype |
15 |
| -from pandas.core.dtypes.common import ( |
16 |
| - is_categorical_dtype, |
17 |
| - is_datetime64tz_dtype) |
18 |
| -from pandas import (Index, Series, isna, date_range, Timestamp, |
19 |
| - NaT, period_range, timedelta_range, MultiIndex, |
20 |
| - IntervalIndex, Categorical, DataFrame) |
21 |
| -from pandas.core.arrays import period_array |
| 12 | +import pandas as pd |
| 13 | +import pandas.util.testing as tm |
| 14 | +from pandas import ( |
| 15 | + Categorical, DataFrame, Index, IntervalIndex, MultiIndex, NaT, Series, |
| 16 | + Timestamp, date_range, isna, period_range, timedelta_range |
| 17 | +) |
22 | 18 | from pandas._libs import lib
|
23 | 19 | from pandas._libs.tslib import iNaT
|
24 |
| - |
25 |
| -from pandas.compat import lrange, range, zip, long, PY36 |
| 20 | +from pandas.api.types import CategoricalDtype |
| 21 | +from pandas.compat import PY36, long, lrange, range, zip |
| 22 | +from pandas.core.arrays import period_array |
| 23 | +from pandas.core.dtypes.common import ( |
| 24 | + is_categorical_dtype, is_datetime64tz_dtype |
| 25 | +) |
26 | 26 | from pandas.util.testing import assert_series_equal
|
27 |
| -import pandas.util.testing as tm |
28 | 27 |
|
29 | 28 |
|
30 | 29 | class TestSeriesConstructors():
|
|
0 commit comments