Skip to content

Commit c318d1f

Browse files
committed
run pre-commit filters on asv_bench/benchmarks/
1 parent b789566 commit c318d1f

33 files changed

+80
-46
lines changed

asv_bench/benchmarks/categoricals.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import warnings
2+
13
import numpy as np
4+
25
import pandas as pd
36
import pandas.util.testing as tm
4-
import warnings
57

68
try:
79
from pandas.api.types import union_categoricals

asv_bench/benchmarks/ctors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import numpy as np
2+
3+
from pandas import DatetimeIndex, Index, MultiIndex, Series, Timestamp
24
import pandas.util.testing as tm
3-
from pandas import Series, Index, DatetimeIndex, Timestamp, MultiIndex
45

56

67
def no_change(arr):

asv_bench/benchmarks/dtypes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1+
import numpy as np
2+
13
from pandas.api.types import pandas_dtype
24

3-
import numpy as np
45
from .pandas_vb_common import (
5-
numeric_dtypes,
66
datetime_dtypes,
7-
string_dtypes,
87
extension_dtypes,
8+
numeric_dtypes,
9+
string_dtypes,
910
)
1011

11-
1212
_numpy_dtypes = [
1313
np.dtype(dtype) for dtype in (numeric_dtypes + datetime_dtypes + string_dtypes)
1414
]

asv_bench/benchmarks/eval.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import numpy as np
2+
23
import pandas as pd
34

45
try:

asv_bench/benchmarks/frame_ctor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import numpy as np
2+
3+
from pandas import DataFrame, MultiIndex, Series, Timestamp, date_range
24
import pandas.util.testing as tm
3-
from pandas import DataFrame, Series, MultiIndex, Timestamp, date_range
45

56
try:
67
from pandas.tseries.offsets import Nano, Hour

asv_bench/benchmarks/frame_methods.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import warnings
21
import string
2+
import warnings
33

44
import numpy as np
55

asv_bench/benchmarks/gil.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import numpy as np
2-
import pandas.util.testing as tm
3-
from pandas import DataFrame, Series, read_csv, factorize, date_range
2+
3+
from pandas import DataFrame, Series, date_range, factorize, read_csv
44
from pandas.core.algorithms import take_1d
5+
import pandas.util.testing as tm
56

67
try:
78
from pandas import (

asv_bench/benchmarks/groupby.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
)
1616
import pandas.util.testing as tm
1717

18-
1918
method_blacklist = {
2019
"object": {
2120
"median",

asv_bench/benchmarks/index_object.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
import gc
2+
23
import numpy as np
3-
import pandas.util.testing as tm
4+
45
from pandas import (
5-
Series,
6-
date_range,
76
DatetimeIndex,
8-
Index,
9-
RangeIndex,
107
Float64Index,
8+
Index,
119
IntervalIndex,
10+
RangeIndex,
11+
Series,
12+
date_range,
1213
)
14+
import pandas.util.testing as tm
1315

1416

1517
class SetOperations:

asv_bench/benchmarks/indexing.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
import warnings
22

33
import numpy as np
4-
import pandas.util.testing as tm
4+
55
from pandas import (
6-
Series,
6+
CategoricalIndex,
77
DataFrame,
8-
MultiIndex,
9-
Int64Index,
10-
UInt64Index,
118
Float64Index,
12-
IntervalIndex,
13-
CategoricalIndex,
149
IndexSlice,
10+
Int64Index,
11+
IntervalIndex,
12+
MultiIndex,
13+
Series,
14+
UInt64Index,
1515
concat,
1616
date_range,
1717
option_context,
1818
period_range,
1919
)
20+
import pandas.util.testing as tm
2021

2122

2223
class NumericSeriesIndexing:

0 commit comments

Comments
 (0)