Skip to content

Commit b759e41

Browse files
committed
Merge remote-tracking branch 'upstream/master' into zhezherun-master
2 parents 32acecb + 4f71755 commit b759e41

File tree

549 files changed

+17760
-11522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

549 files changed

+17760
-11522
lines changed

.circleci/config.yml

+3-108
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,6 @@
11
version: 2
22
jobs:
33

4-
# --------------------------------------------------------------------------
5-
# 0. py27_compat
6-
# --------------------------------------------------------------------------
7-
py27_compat:
8-
docker:
9-
- image: continuumio/miniconda:latest
10-
# databases configuration
11-
- image: circleci/postgres:9.6.5-alpine-ram
12-
environment:
13-
POSTGRES_USER: postgres
14-
POSTGRES_DB: pandas_nosetest
15-
- image: circleci/mysql:8-ram
16-
environment:
17-
MYSQL_USER: "root"
18-
MYSQL_HOST: "localhost"
19-
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
20-
MYSQL_DATABASE: "pandas_nosetest"
21-
environment:
22-
JOB: "2.7_COMPAT"
23-
ENV_FILE: "ci/circle-27-compat.yaml"
24-
LOCALE_OVERRIDE: "it_IT.UTF-8"
25-
MINICONDA_DIR: /home/ubuntu/miniconda3
26-
steps:
27-
- checkout
28-
- run:
29-
name: build
30-
command: |
31-
./ci/install_circle.sh
32-
./ci/show_circle.sh
33-
- run:
34-
name: test
35-
command: ./ci/run_circle.sh --skip-slow --skip-network
36-
374
# --------------------------------------------------------------------------
385
# 1. py36_locale
396
# --------------------------------------------------------------------------
@@ -62,86 +29,14 @@ jobs:
6229
- run:
6330
name: build
6431
command: |
65-
./ci/install_circle.sh
66-
./ci/show_circle.sh
32+
./ci/circle/install_circle.sh
33+
./ci/circle/show_circle.sh
6734
- run:
6835
name: test
69-
command: ./ci/run_circle.sh --skip-slow --skip-network
70-
71-
# --------------------------------------------------------------------------
72-
# 2. py36_locale_slow
73-
# --------------------------------------------------------------------------
74-
py36_locale_slow:
75-
docker:
76-
- image: continuumio/miniconda:latest
77-
# databases configuration
78-
- image: circleci/postgres:9.6.5-alpine-ram
79-
environment:
80-
POSTGRES_USER: postgres
81-
POSTGRES_DB: pandas_nosetest
82-
- image: circleci/mysql:8-ram
83-
environment:
84-
MYSQL_USER: "root"
85-
MYSQL_HOST: "localhost"
86-
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
87-
MYSQL_DATABASE: "pandas_nosetest"
88-
89-
environment:
90-
JOB: "3.6_LOCALE_SLOW"
91-
ENV_FILE: "ci/circle-36-locale_slow.yaml"
92-
LOCALE_OVERRIDE: "zh_CN.UTF-8"
93-
MINICONDA_DIR: /home/ubuntu/miniconda3
94-
steps:
95-
- checkout
96-
- run:
97-
name: build
98-
command: |
99-
./ci/install_circle.sh
100-
./ci/show_circle.sh
101-
- run:
102-
name: test
103-
command: ./ci/run_circle.sh --only-slow --skip-network
104-
105-
# --------------------------------------------------------------------------
106-
# 3. py35_ascii
107-
# --------------------------------------------------------------------------
108-
py35_ascii:
109-
docker:
110-
- image: continuumio/miniconda:latest
111-
# databases configuration
112-
- image: circleci/postgres:9.6.5-alpine-ram
113-
environment:
114-
POSTGRES_USER: postgres
115-
POSTGRES_DB: pandas_nosetest
116-
- image: circleci/mysql:8-ram
117-
environment:
118-
MYSQL_USER: "root"
119-
MYSQL_HOST: "localhost"
120-
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
121-
MYSQL_DATABASE: "pandas_nosetest"
122-
123-
environment:
124-
JOB: "3.5_ASCII"
125-
ENV_FILE: "ci/circle-35-ascii.yaml"
126-
LOCALE_OVERRIDE: "C"
127-
MINICONDA_DIR: /home/ubuntu/miniconda3
128-
steps:
129-
- checkout
130-
- run:
131-
name: build
132-
command: |
133-
./ci/install_circle.sh
134-
./ci/show_circle.sh
135-
- run:
136-
name: test
137-
command: ./ci/run_circle.sh --skip-slow --skip-network
138-
36+
command: ./ci/circle/run_circle.sh --skip-slow --skip-network
13937

14038
workflows:
14139
version: 2
14240
build_and_test:
14341
jobs:
144-
- py27_compat
14542
- py36_locale
146-
- py36_locale_slow
147-
- py35_ascii

.pep8speaks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ pycodestyle:
1111
max-line-length: 79
1212
ignore:
1313
- W503, # line break before binary operator
14+
- W504, # line break after binary operator
1415
- E402, # module level import not at top of file
1516
- E722, # do not use bare except
1617
- E731, # do not assign a lambda expression, use a def
17-
- E741, # ambiguous variable name 'l'
1818
- C406, # Unnecessary list literal - rewrite as a dict literal.
1919
- C408, # Unnecessary dict call - rewrite as a literal.
2020
- C409 # Unnecessary list passed to tuple() - rewrite as a tuple literal.

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ after_success:
116116
after_script:
117117
- echo "after_script start"
118118
- source activate pandas && pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd
119-
- if [ -e /tmp/single.xml ]; then
120-
ci/print_skipped.py /tmp/single.xml;
119+
- if [ -e test-data-single.xml ]; then
120+
ci/print_skipped.py test-data-single.xml;
121121
fi
122-
- if [ -e /tmp/multiple.xml ]; then
123-
ci/print_skipped.py /tmp/multiple.xml;
122+
- if [ -e test-data-multiple.xml ]; then
123+
ci/print_skipped.py test-data-multiple.xml;
124124
fi
125125
- echo "after_script done"

asv_bench/benchmarks/algorithms.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@
1212
except (ImportError, TypeError, ValueError):
1313
pass
1414

15-
from .pandas_vb_common import setup # noqa
16-
1715

1816
class Factorize(object):
1917

20-
goal_time = 0.2
21-
2218
params = [True, False]
2319
param_names = ['sort']
2420

@@ -40,8 +36,6 @@ def time_factorize_string(self, sort):
4036

4137
class Duplicated(object):
4238

43-
goal_time = 0.2
44-
4539
params = ['first', 'last', False]
4640
param_names = ['keep']
4741

@@ -63,8 +57,6 @@ def time_duplicated_string(self, keep):
6357

6458
class DuplicatedUniqueIndex(object):
6559

66-
goal_time = 0.2
67-
6860
def setup(self):
6961
N = 10**5
7062
self.idx_int_dup = pd.Int64Index(np.arange(N * 5))
@@ -77,8 +69,6 @@ def time_duplicated_unique_int(self):
7769

7870
class Match(object):
7971

80-
goal_time = 0.2
81-
8272
def setup(self):
8373
self.uniques = tm.makeStringIndex(1000).values
8474
self.all = self.uniques.repeat(10)
@@ -90,8 +80,6 @@ def time_match_string(self):
9080

9181
class Hashing(object):
9282

93-
goal_time = 0.2
94-
9583
def setup_cache(self):
9684
N = 10**5
9785

@@ -126,3 +114,6 @@ def time_series_timedeltas(self, df):
126114

127115
def time_series_dates(self, df):
128116
hashing.hash_pandas_object(df['dates'])
117+
118+
119+
from .pandas_vb_common import setup # noqa: F401

asv_bench/benchmarks/attrs_caching.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@
55
except ImportError:
66
from pandas.util.decorators import cache_readonly
77

8-
from .pandas_vb_common import setup # noqa
9-
108

119
class DataFrameAttributes(object):
1210

13-
goal_time = 0.2
14-
1511
def setup(self):
1612
self.df = DataFrame(np.random.randn(10, 6))
1713
self.cur_index = self.df.index
@@ -25,8 +21,6 @@ def time_set_index(self):
2521

2622
class CacheReadonly(object):
2723

28-
goal_time = 0.2
29-
3024
def setup(self):
3125

3226
class Foo:
@@ -38,3 +32,6 @@ def prop(self):
3832

3933
def time_cache_readonly(self):
4034
self.obj.prop
35+
36+
37+
from .pandas_vb_common import setup # noqa: F401

asv_bench/benchmarks/binary_ops.py

+3-12
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66
except ImportError:
77
import pandas.computation.expressions as expr
88

9-
from .pandas_vb_common import setup # noqa
10-
119

1210
class Ops(object):
1311

14-
goal_time = 0.2
15-
1612
params = [[True, False], ['default', 1]]
1713
param_names = ['use_numexpr', 'threads']
1814

@@ -44,8 +40,6 @@ def teardown(self, use_numexpr, threads):
4440

4541
class Ops2(object):
4642

47-
goal_time = 0.2
48-
4943
def setup(self):
5044
N = 10**3
5145
self.df = DataFrame(np.random.randn(N, N))
@@ -83,8 +77,6 @@ def time_frame_float_mod(self):
8377

8478
class Timeseries(object):
8579

86-
goal_time = 0.2
87-
8880
params = [None, 'US/Eastern']
8981
param_names = ['tz']
9082

@@ -111,8 +103,6 @@ def time_timestamp_ops_diff_with_shift(self, tz):
111103

112104
class AddOverflowScalar(object):
113105

114-
goal_time = 0.2
115-
116106
params = [1, -1, 0]
117107
param_names = ['scalar']
118108

@@ -126,8 +116,6 @@ def time_add_overflow_scalar(self, scalar):
126116

127117
class AddOverflowArray(object):
128118

129-
goal_time = 0.2
130-
131119
def setup(self):
132120
N = 10**6
133121
self.arr = np.arange(N)
@@ -149,3 +137,6 @@ def time_add_overflow_b_mask_nan(self):
149137
def time_add_overflow_both_arg_nan(self):
150138
checked_add_with_arr(self.arr, self.arr_mixed, arr_mask=self.arr_nan_1,
151139
b_mask=self.arr_nan_2)
140+
141+
142+
from .pandas_vb_common import setup # noqa: F401

asv_bench/benchmarks/categoricals.py

+3-19
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111
except ImportError:
1212
pass
1313

14-
from .pandas_vb_common import setup # noqa
15-
1614

1715
class Concat(object):
1816

19-
goal_time = 0.2
20-
2117
def setup(self):
2218
N = 10**5
2319
self.s = pd.Series(list('aabbcd') * N).astype('category')
@@ -34,8 +30,6 @@ def time_union(self):
3430

3531
class Constructor(object):
3632

37-
goal_time = 0.2
38-
3933
def setup(self):
4034
N = 10**5
4135
self.categories = list('abcde')
@@ -77,8 +71,6 @@ def time_from_codes_all_int8(self):
7771

7872
class ValueCounts(object):
7973

80-
goal_time = 0.2
81-
8274
params = [True, False]
8375
param_names = ['dropna']
8476

@@ -93,8 +85,6 @@ def time_value_counts(self, dropna):
9385

9486
class Repr(object):
9587

96-
goal_time = 0.2
97-
9888
def setup(self):
9989
self.sel = pd.Series(['s1234']).astype('category')
10090

@@ -104,8 +94,6 @@ def time_rendering(self):
10494

10595
class SetCategories(object):
10696

107-
goal_time = 0.2
108-
10997
def setup(self):
11098
n = 5 * 10**5
11199
arr = ['s%04d' % i for i in np.random.randint(0, n // 10, size=n)]
@@ -117,8 +105,6 @@ def time_set_categories(self):
117105

118106
class Rank(object):
119107

120-
goal_time = 0.2
121-
122108
def setup(self):
123109
N = 10**5
124110
ncats = 100
@@ -156,8 +142,6 @@ def time_rank_int_cat_ordered(self):
156142

157143
class Isin(object):
158144

159-
goal_time = 0.2
160-
161145
params = ['object', 'int64']
162146
param_names = ['dtype']
163147

@@ -197,8 +181,6 @@ def time_categorical_series_is_monotonic_decreasing(self):
197181

198182
class Contains(object):
199183

200-
goal_time = 0.2
201-
202184
def setup(self):
203185
N = 10**5
204186
self.ci = tm.makeCategoricalIndex(N)
@@ -214,7 +196,6 @@ def time_categorical_contains(self):
214196

215197
class CategoricalSlicing(object):
216198

217-
goal_time = 0.2
218199
params = ['monotonic_incr', 'monotonic_decr', 'non_monotonic']
219200
param_names = ['index']
220201

@@ -245,3 +226,6 @@ def time_getitem_list(self, index):
245226

246227
def time_getitem_bool_array(self, index):
247228
self.data[self.data == self.cat_scalar]
229+
230+
231+
from .pandas_vb_common import setup # noqa: F401

0 commit comments

Comments
 (0)