Skip to content

Commit 3b9c7c4

Browse files
committed
Merge remote-tracking branch 'upstream/master' into grp-desc-perf
2 parents 7c3c349 + 20bdb3e commit 3b9c7c4

File tree

760 files changed

+42863
-26777
lines changed

Some content is hidden

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

760 files changed

+42863
-26777
lines changed

.circleci/config.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: continuumio/miniconda:latest
6+
# databases configuration
7+
- image: circleci/postgres:9.6.5-alpine-ram
8+
environment:
9+
POSTGRES_USER: postgres
10+
POSTGRES_DB: pandas_nosetest
11+
- image: circleci/mysql:8-ram
12+
environment:
13+
MYSQL_USER: "root"
14+
MYSQL_HOST: "localhost"
15+
MYSQL_ALLOW_EMPTY_PASSWORD: "true"
16+
MYSQL_DATABASE: "pandas_nosetest"
17+
18+
environment:
19+
JOB: "3.6_LOCALE"
20+
ENV_FILE: "ci/deps/circle-36-locale.yaml"
21+
LOCALE_OVERRIDE: "zh_CN.UTF-8"
22+
MINICONDA_DIR: /home/ubuntu/miniconda3
23+
steps:
24+
- checkout
25+
- run:
26+
name: build
27+
command: |
28+
./ci/circle/install_circle.sh
29+
./ci/circle/show_circle.sh
30+
- run:
31+
name: test
32+
command: ./ci/circle/run_circle.sh --skip-slow --skip-network

.coveragerc

Lines changed: 0 additions & 29 deletions
This file was deleted.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ dist
6262
coverage.xml
6363
coverage_html_report
6464
*.pytest_cache
65+
# hypothesis test database
66+
.hypothesis/
6567

6668
# OS generated files #
6769
######################

.pep8speaks.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,18 @@
33
scanner:
44
diff_only: True # If True, errors caused by only the patch are shown
55

6+
# Opened issue in pep8speaks, so we can directly use the config in setup.cfg
7+
# (and avoid having to duplicate it here):
8+
# https://github.com/OrkoHunter/pep8speaks/issues/95
9+
610
pycodestyle:
711
max-line-length: 79
8-
ignore: # Errors and warnings to ignore
12+
ignore:
13+
- W503, # line break before binary operator
14+
- W504, # line break after binary operator
915
- E402, # module level import not at top of file
16+
- E722, # do not use bare except
1017
- E731, # do not assign a lambda expression, use a def
11-
- E741, # do not use variables named 'l', 'O', or 'I'
12-
- W503 # line break before binary operator
18+
- C406, # Unnecessary list literal - rewrite as a dict literal.
19+
- C408, # Unnecessary dict call - rewrite as a literal.
20+
- C409 # Unnecessary list passed to tuple() - rewrite as a tuple literal.

.travis.yml

Lines changed: 20 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -30,63 +30,53 @@ matrix:
3030
exclude:
3131
# Exclude the default Python 3.5 build
3232
- python: 3.5
33-
include:
34-
- os: osx
35-
language: generic
36-
env:
37-
- JOB="3.5, OSX" ENV_FILE="ci/travis-35-osx.yaml" TEST_ARGS="--skip-slow --skip-network"
3833

34+
include:
3935
- dist: trusty
4036
env:
41-
- JOB="3.7" ENV_FILE="ci/travis-37.yaml" TEST_ARGS="--skip-slow --skip-network"
37+
- JOB="3.7" ENV_FILE="ci/deps/travis-37.yaml" TEST_ARGS="--skip-slow --skip-network"
4238

4339
- dist: trusty
4440
env:
45-
- JOB="2.7, locale, slow, old NumPy" ENV_FILE="ci/travis-27-locale.yaml" LOCALE_OVERRIDE="zh_CN.UTF-8" SLOW=true
41+
- JOB="2.7, locale, slow, old NumPy" ENV_FILE="ci/deps/travis-27-locale.yaml" LOCALE_OVERRIDE="zh_CN.UTF-8" SLOW=true
4642
addons:
4743
apt:
4844
packages:
4945
- language-pack-zh-hans
5046
- dist: trusty
5147
env:
52-
- JOB="2.7, lint" ENV_FILE="ci/travis-27.yaml" TEST_ARGS="--skip-slow" LINT=true
48+
- JOB="2.7" ENV_FILE="ci/deps/travis-27.yaml" TEST_ARGS="--skip-slow"
5349
addons:
5450
apt:
5551
packages:
5652
- python-gtk2
5753
- dist: trusty
5854
env:
59-
- JOB="3.6, coverage" ENV_FILE="ci/travis-36.yaml" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate" COVERAGE=true
60-
# In allow_failures
61-
- dist: trusty
62-
env:
63-
- JOB="3.6, slow" ENV_FILE="ci/travis-36-slow.yaml" SLOW=true
64-
# In allow_failures
55+
- JOB="3.6, lint, coverage" ENV_FILE="ci/deps/travis-36.yaml" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate" COVERAGE=true LINT=true
6556
- dist: trusty
6657
env:
67-
- JOB="3.6, NumPy dev" ENV_FILE="ci/travis-36-numpydev.yaml" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
58+
- JOB="3.7, NumPy dev" ENV_FILE="ci/deps/travis-37-numpydev.yaml" TEST_ARGS="--skip-slow --skip-network -W error" PANDAS_TESTING_MODE="deprecate"
6859
addons:
6960
apt:
7061
packages:
7162
- xsel
63+
7264
# In allow_failures
7365
- dist: trusty
7466
env:
75-
- JOB="3.6, doc" ENV_FILE="ci/travis-36-doc.yaml" DOC=true
67+
- JOB="3.6, slow" ENV_FILE="ci/deps/travis-36-slow.yaml" SLOW=true
68+
69+
# In allow_failures
70+
- dist: trusty
71+
env:
72+
- JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-doc.yaml" DOC=true
7673
allow_failures:
7774
- dist: trusty
7875
env:
79-
- JOB="3.6, slow" ENV_FILE="ci/travis-36-slow.yaml" SLOW=true
80-
- dist: trusty
81-
env:
82-
- JOB="3.6, NumPy dev" ENV_FILE="ci/travis-36-numpydev.yaml" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
83-
addons:
84-
apt:
85-
packages:
86-
- xsel
76+
- JOB="3.6, slow" ENV_FILE="ci/deps/travis-36-slow.yaml" SLOW=true
8777
- dist: trusty
8878
env:
89-
- JOB="3.6, doc" ENV_FILE="ci/travis-36-doc.yaml" DOC=true
79+
- JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-doc.yaml" DOC=true
9080

9181
before_install:
9282
- echo "before_install"
@@ -118,21 +108,18 @@ script:
118108
- ci/run_build_docs.sh
119109
- ci/script_single.sh
120110
- ci/script_multi.sh
121-
- ci/lint.sh
122-
- echo "checking imports"
123-
- source activate pandas && python ci/check_imports.py
124-
- echo "script done"
111+
- ci/code_checks.sh
125112

126113
after_success:
127114
- ci/upload_coverage.sh
128115

129116
after_script:
130117
- echo "after_script start"
131118
- source activate pandas && pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd
132-
- if [ -e /tmp/single.xml ]; then
133-
ci/print_skipped.py /tmp/single.xml;
119+
- if [ -e test-data-single.xml ]; then
120+
ci/print_skipped.py test-data-single.xml;
134121
fi
135-
- if [ -e /tmp/multiple.xml ]; then
136-
ci/print_skipped.py /tmp/multiple.xml;
122+
- if [ -e test-data-multiple.xml ]; then
123+
ci/print_skipped.py test-data-multiple.xml;
137124
fi
138125
- echo "after_script done"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build: clean_pyc
1313
python setup.py build_ext --inplace
1414

1515
lint-diff:
16-
git diff master --name-only -- "*.py" | grep "pandas" | xargs flake8
16+
git diff master --name-only -- "*.py" | grep -E "pandas|scripts" | xargs flake8
1717

1818
develop: build
1919
-python setup.py develop

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
<tr>
5757
<td></td>
5858
<td>
59-
<a href="https://ci.appveyor.com/project/pandas-dev/pandas">
60-
<img src="https://ci.appveyor.com/api/projects/status/86vn83mxgnl4xf1s/branch/master?svg=true" alt="appveyor build status" />
59+
<a href="https://dev.azure.com/pandas-dev/pandas/_build/latest?definitionId=1&branch=master">
60+
<img src="https://dev.azure.com/pandas-dev/pandas/_apis/build/status/pandas-dev.pandas?branch=master" alt="Azure Pipelines build status" />
6161
</a>
6262
</td>
6363
</tr>
@@ -97,7 +97,7 @@ easy and intuitive. It aims to be the fundamental high-level building block for
9797
doing practical, **real world** data analysis in Python. Additionally, it has
9898
the broader goal of becoming **the most powerful and flexible open source data
9999
analysis / manipulation tool available in any language**. It is already well on
100-
its way toward this goal.
100+
its way towards this goal.
101101

102102
## Main Features
103103
Here are just a few of the things that pandas does well:

appveyor.yml

Lines changed: 0 additions & 91 deletions
This file was deleted.

asv_bench/benchmarks/algorithms.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,12 @@
99
try:
1010
hashing = import_module(imp)
1111
break
12-
except:
12+
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

0 commit comments

Comments
 (0)