Skip to content

Commit 1b10ca2

Browse files
authored
Merge branch 'master' into dep_keyword
2 parents 4c83659 + 740ad9a commit 1b10ca2

Some content is hidden

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

45 files changed

+1653
-1010
lines changed

.travis.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ matrix:
5050
packages:
5151
- python-gtk2
5252
# In allow_failures
53-
- dist: trusty
54-
env:
55-
- JOB="3.5" TEST_ARGS="--skip-slow --skip-network"
5653
- dist: trusty
5754
env:
5855
- JOB="3.6" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate" CONDA_FORGE=true COVERAGE=true
@@ -63,36 +60,26 @@ matrix:
6360
# In allow_failures
6461
- dist: trusty
6562
env:
66-
- JOB="3.6_PIP_BUILD_TEST" TEST_ARGS="--skip-slow" PIP_BUILD_TEST=true
63+
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
6764
addons:
6865
apt:
6966
packages:
7067
- xsel
7168
# In allow_failures
72-
- dist: trusty
73-
env:
74-
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
75-
# In allow_failures
7669
- dist: trusty
7770
env:
7871
- JOB="3.6_DOC" DOC=true
7972
allow_failures:
80-
- dist: trusty
81-
env:
82-
- JOB="3.5" TEST_ARGS="--skip-slow --skip-network"
8373
- dist: trusty
8474
env:
8575
- JOB="2.7_SLOW" SLOW=true
8676
- dist: trusty
8777
env:
88-
- JOB="3.6_PIP_BUILD_TEST" TEST_ARGS="--skip-slow" PIP_BUILD_TEST=true
78+
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
8979
addons:
9080
apt:
9181
packages:
9282
- xsel
93-
- dist: trusty
94-
env:
95-
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
9683
- dist: trusty
9784
env:
9885
- JOB="3.6_DOC" DOC=true

ci/install_travis.sh

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,6 @@ if [ "$COVERAGE" ]; then
115115
pip install coverage pytest-cov
116116
fi
117117

118-
echo
119-
if [ -z "$PIP_BUILD_TEST" ] ; then
120-
121-
# build but don't install
122-
echo "[build em]"
123-
time python setup.py build_ext --inplace || exit 1
124-
125-
fi
126-
127118
# we may have run installations
128119
echo
129120
echo "[conda installs]"
@@ -161,23 +152,8 @@ conda list pandas
161152
pip list --format columns |grep pandas
162153

163154
# build and install
164-
echo
165-
166-
if [ "$PIP_BUILD_TEST" ]; then
167-
168-
# build & install testing
169-
echo "[building release]"
170-
time bash scripts/build_dist_for_release.sh || exit 1
171-
conda uninstall -y cython
172-
time pip install dist/*tar.gz || exit 1
173-
174-
else
175-
176-
# install our pandas
177-
echo "[running setup.py develop]"
178-
python setup.py develop || exit 1
179-
180-
fi
155+
echo "[running setup.py develop]"
156+
python setup.py develop || exit 1
181157

182158
echo
183159
echo "[show pandas]"

ci/requirements-3.6_PIP_BUILD_TEST.build

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

ci/requirements-3.6_PIP_BUILD_TEST.pip

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

ci/requirements-3.6_PIP_BUILD_TEST.sh

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

ci/requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ pytest>=3.1
77
python-dateutil>=2.5.0
88
pytz
99
setuptools>=3.3
10-
sphinx
10+
sphinx=1.5*

ci/script_multi.sh

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,18 @@ if [ -n "$LOCALE_OVERRIDE" ]; then
1212
python -c "$pycmd"
1313
fi
1414

15+
# Enforce absent network during testing by faking a proxy
16+
if echo "$TEST_ARGS" | grep -e --skip-network -q; then
17+
export http_proxy=http://1.2.3.4 https_proxy=http://1.2.3.4;
18+
fi
19+
1520
# Workaround for pytest-xdist flaky collection order
1621
# https://github.com/pytest-dev/pytest/issues/920
1722
# https://github.com/pytest-dev/pytest/issues/1075
1823
export PYTHONHASHSEED=$(python -c 'import random; print(random.randint(1, 4294967295))')
1924
echo PYTHONHASHSEED=$PYTHONHASHSEED
2025

21-
if [ "$PIP_BUILD_TEST" ] ; then
22-
echo "[build-test]"
23-
24-
echo "[env]"
25-
pip list --format columns |grep pandas
26-
27-
echo "[running]"
28-
cd /tmp
29-
unset PYTHONPATH
30-
31-
echo "[build-test: single]"
32-
python -c 'import pandas; pandas.test(["--skip-slow", "--skip-network", "-r xX", "-m single"])'
33-
34-
echo "[build-test: not single]"
35-
python -c 'import pandas; pandas.test(["-n 2", "--skip-slow", "--skip-network", "-r xX", "-m not single"])'
36-
37-
elif [ "$DOC" ]; then
26+
if [ "$DOC" ]; then
3827
echo "We are not running pytest as this is a doc-build"
3928

4029
elif [ "$COVERAGE" ]; then

ci/script_single.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ if [ "$SLOW" ]; then
1616
TEST_ARGS="--only-slow --skip-network"
1717
fi
1818

19-
if [ "$PIP_BUILD_TEST" ]; then
20-
echo "We are not running pytest as this is a build test."
19+
# Enforce absent network during testing by faking a proxy
20+
if echo "$TEST_ARGS" | grep -e --skip-network -q; then
21+
export http_proxy=http://1.2.3.4 https_proxy=http://1.2.3.4;
22+
fi
2123

22-
elif [ "$DOC" ]; then
24+
if [ "$DOC" ]; then
2325
echo "We are not running pytest as this is a doc-build"
2426

2527
elif [ "$COVERAGE" ]; then

doc/source/advanced.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Passing a list of labels or tuples works similar to reindexing:
274274
275275
df.loc[[('bar', 'two'), ('qux', 'one')]]
276276
277-
.. info::
277+
.. note::
278278

279279
It is important to note that tuples and lists are not treated identically
280280
in pandas when it comes to indexing. Whereas a tuple is interpreted as one

doc/source/api.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1682,6 +1682,16 @@ MultiIndex Components
16821682
MultiIndex.reorder_levels
16831683
MultiIndex.remove_unused_levels
16841684

1685+
MultiIndex Selecting
1686+
~~~~~~~~~~~~~~~~~~~~
1687+
1688+
.. autosummary::
1689+
:toctree: generated/
1690+
1691+
MultiIndex.get_loc
1692+
MultiIndex.get_indexer
1693+
MultiIndex.get_level_values
1694+
16851695
.. _api.datetimeindex:
16861696

16871697
DatetimeIndex

0 commit comments

Comments
 (0)