|
1 |
| -import warnings |
2 |
| -import operator |
3 | 1 | from distutils.version import LooseVersion
|
4 | 2 | from itertools import product
|
| 3 | +import operator |
| 4 | +import warnings |
5 | 5 |
|
| 6 | +import numpy as np |
| 7 | +from numpy.random import rand, randint, randn |
6 | 8 | import pytest
|
7 | 9 |
|
8 |
| -from numpy.random import randn, rand, randint |
9 |
| -import numpy as np |
| 10 | +from pandas.compat import PY3, reduce |
| 11 | +from pandas.errors import PerformanceWarning |
| 12 | +import pandas.util._test_decorators as td |
10 | 13 |
|
11 | 14 | from pandas.core.dtypes.common import is_bool, is_list_like, is_scalar
|
12 |
| -import pandas as pd |
13 |
| -from pandas.errors import PerformanceWarning |
14 |
| -from pandas import DataFrame, Series, Panel, date_range |
15 |
| -from pandas.util.testing import makeCustomDataframe as mkdf |
16 | 15 |
|
| 16 | +import pandas as pd |
| 17 | +from pandas import DataFrame, Panel, Series, date_range |
17 | 18 | from pandas.core.computation import pytables
|
18 | 19 | from pandas.core.computation.check import _NUMEXPR_VERSION
|
19 |
| -from pandas.core.computation.engines import _engines, NumExprClobberingError |
20 |
| -from pandas.core.computation.expr import PythonExprVisitor, PandasExprVisitor |
| 20 | +from pandas.core.computation.engines import NumExprClobberingError, _engines |
| 21 | +import pandas.core.computation.expr as expr |
| 22 | +from pandas.core.computation.expr import PandasExprVisitor, PythonExprVisitor |
21 | 23 | from pandas.core.computation.expressions import (
|
22 |
| - _USE_NUMEXPR, _NUMEXPR_INSTALLED) |
| 24 | + _NUMEXPR_INSTALLED, _USE_NUMEXPR) |
23 | 25 | from pandas.core.computation.ops import (
|
24 |
| - _binary_ops_dict, |
25 |
| - _special_case_arith_ops_syms, |
26 |
| - _arith_ops_syms, _bool_ops_syms, |
27 |
| - _unary_math_ops, _binary_math_ops) |
28 |
| - |
29 |
| -import pandas.core.computation.expr as expr |
| 26 | + _arith_ops_syms, _binary_math_ops, _binary_ops_dict, _bool_ops_syms, |
| 27 | + _special_case_arith_ops_syms, _unary_math_ops) |
30 | 28 | import pandas.util.testing as tm
|
31 |
| -import pandas.util._test_decorators as td |
32 |
| -from pandas.util.testing import (assert_frame_equal, randbool, |
33 |
| - assert_numpy_array_equal, assert_series_equal, |
34 |
| - assert_produces_warning) |
35 |
| -from pandas.compat import PY3, reduce |
36 |
| - |
| 29 | +from pandas.util.testing import ( |
| 30 | + assert_frame_equal, assert_numpy_array_equal, assert_produces_warning, |
| 31 | + assert_series_equal, makeCustomDataframe as mkdf, randbool) |
37 | 32 |
|
38 | 33 | _series_frame_incompatible = _bool_ops_syms
|
39 | 34 | _scalar_skip = 'in', 'not in'
|
|
0 commit comments