Skip to content

Commit 091cfbb

Browse files
thoojreback
authored andcommitted
Run isort on tests/indexes (#24531)
1 parent b9284a2 commit 091cfbb

34 files changed

+107
-128
lines changed

pandas/tests/indexes/interval/test_astype.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
import numpy as np
44
import pytest
55

6-
import pandas.util.testing as tm
6+
from pandas.core.dtypes.dtypes import CategoricalDtype, IntervalDtype
7+
78
from pandas import (
89
CategoricalIndex, Index, IntervalIndex, NaT, Timedelta, Timestamp,
9-
interval_range
10-
)
11-
from pandas.core.dtypes.dtypes import CategoricalDtype, IntervalDtype
10+
interval_range)
11+
import pandas.util.testing as tm
1212

1313

1414
class Base(object):

pandas/tests/indexes/interval/test_construction.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,18 @@
55
import numpy as np
66
import pytest
77

8-
import pandas.core.common as com
9-
import pandas.util.testing as tm
10-
from pandas import (
11-
Categorical, CategoricalIndex, Float64Index, Index, Int64Index, Interval,
12-
IntervalIndex, date_range, notna, period_range, timedelta_range
13-
)
148
from pandas.compat import lzip
15-
from pandas.core.arrays import IntervalArray
9+
1610
from pandas.core.dtypes.common import is_categorical_dtype
1711
from pandas.core.dtypes.dtypes import IntervalDtype
1812

13+
from pandas import (
14+
Categorical, CategoricalIndex, Float64Index, Index, Int64Index, Interval,
15+
IntervalIndex, date_range, notna, period_range, timedelta_range)
16+
from pandas.core.arrays import IntervalArray
17+
import pandas.core.common as com
18+
import pandas.util.testing as tm
19+
1920

2021
@pytest.fixture(params=[None, 'foo'])
2122
def name(request):

pandas/tests/indexes/interval/test_interval.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
from __future__ import division
22

3-
import re
43
from itertools import permutations
4+
import re
55

66
import numpy as np
77
import pytest
88

9+
from pandas.compat import lzip
10+
911
import pandas as pd
10-
import pandas.core.common as com
11-
import pandas.util.testing as tm
1212
from pandas import (
1313
Index, Interval, IntervalIndex, Timedelta, Timestamp, date_range,
14-
interval_range, isna, notna, timedelta_range
15-
)
16-
from pandas.compat import lzip
14+
interval_range, isna, notna, timedelta_range)
15+
import pandas.core.common as com
1716
from pandas.tests.indexes.common import Base
17+
import pandas.util.testing as tm
1818

1919

2020
@pytest.fixture(scope='class', params=[None, 'foo'])

pandas/tests/indexes/interval/test_interval_new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import numpy as np
44
import pytest
55

6-
import pandas.util.testing as tm
76
from pandas import Int64Index, Interval, IntervalIndex
7+
import pandas.util.testing as tm
88

99
pytestmark = pytest.mark.skip(reason="new indexing tests for issue 16316")
1010

pandas/tests/indexes/interval/test_interval_range.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
import numpy as np
66
import pytest
77

8-
import pandas.util.testing as tm
8+
from pandas.core.dtypes.common import is_integer
9+
910
from pandas import (
1011
DateOffset, Interval, IntervalIndex, Timedelta, Timestamp, date_range,
11-
interval_range, timedelta_range
12-
)
13-
from pandas.core.dtypes.common import is_integer
12+
interval_range, timedelta_range)
13+
import pandas.util.testing as tm
14+
1415
from pandas.tseries.offsets import Day
1516

1617

pandas/tests/indexes/interval/test_interval_tree.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
import numpy as np
66
import pytest
77

8-
import pandas.util.testing as tm
9-
from pandas import compat
108
from pandas._libs.interval import IntervalTree
119

10+
from pandas import compat
11+
import pandas.util.testing as tm
12+
1213

1314
def skipif_32bit(param):
1415
"""

pandas/tests/indexes/multi/test_analytics.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
import numpy as np
44
import pytest
55

6+
from pandas.compat import lrange
7+
68
import pandas as pd
7-
import pandas.util.testing as tm
89
from pandas import Index, MultiIndex, date_range, period_range
9-
from pandas.compat import lrange
10+
import pandas.util.testing as tm
1011

1112

1213
def test_shift(idx):

pandas/tests/indexes/multi/test_astype.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytest
55

66
from pandas.core.dtypes.dtypes import CategoricalDtype
7+
78
from pandas.util.testing import assert_copy
89

910

pandas/tests/indexes/multi/test_conversion.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
from collections import OrderedDict
44

5-
import pytest
65
import numpy as np
6+
import pytest
7+
8+
from pandas.compat import range
79

810
import pandas as pd
9-
import pandas.util.testing as tm
1011
from pandas import DataFrame, MultiIndex, date_range
11-
from pandas.compat import range
12+
import pandas.util.testing as tm
1213

1314

1415
def test_tolist(idx):

pandas/tests/indexes/multi/test_drop.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
import numpy as np
55
import pytest
66

7-
import pandas as pd
8-
import pandas.util.testing as tm
9-
from pandas import Index, MultiIndex
107
from pandas.compat import lrange
118
from pandas.errors import PerformanceWarning
129

10+
import pandas as pd
11+
from pandas import Index, MultiIndex
12+
import pandas.util.testing as tm
13+
1314

1415
def test_drop(idx):
1516
dropped = idx.drop([('foo', 'two'), ('qux', 'one')])

0 commit comments

Comments
 (0)