Skip to content

Commit 8d7399f

Browse files
committed
Merge remote-tracking branch 'upstream/master' into docfix-multiindex-set_levels
1 parent a76adb3 commit 8d7399f

File tree

267 files changed

+14706
-95796
lines changed

Some content is hidden

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

267 files changed

+14706
-95796
lines changed

.binstar.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package: pandas
2+
user: jreback
3+
4+
install:
5+
- conda config --add channels pandas
6+
7+
before_script:
8+
- python -V
9+
10+
platform:
11+
- linux-64
12+
#- linux-32
13+
- osx-64
14+
#- win-32
15+
- win-64
16+
engine:
17+
- python=2.7
18+
- python=3.4
19+
script:
20+
- conda build conda.recipe --quiet
21+
22+
iotimeout: 600
23+
24+
build_targets: conda
25+
26+
notifications:
27+
email:
28+
recipients: ['[email protected]']

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,17 @@ matrix:
4848
- mysql
4949
- postgresql
5050

51+
# In allow_failures
5152
- env:
5253
- JOB="3.6, slow" ENV_FILE="ci/deps/travis-36-slow.yaml" PATTERN="slow" SQL="1"
5354
services:
5455
- mysql
5556
- postgresql
5657

58+
allow_failures:
59+
- env:
60+
- JOB="3.6, slow" ENV_FILE="ci/deps/travis-36-slow.yaml" PATTERN="slow" SQL="1"
61+
5762
before_install:
5863
- echo "before_install"
5964
# set non-blocking IO on travis

LICENSES/MSGPACK_LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (C) 2008-2011 INADA Naoki <[email protected]>
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

LICENSES/MSGPACK_NUMPY_LICENSE

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.. -*- rst -*-
2+
3+
License
4+
=======
5+
6+
Copyright (c) 2013, Lev Givon.
7+
All rights reserved.
8+
9+
Redistribution and use in source and binary forms, with or without
10+
modification, are permitted provided that the following conditions are
11+
met:
12+
13+
* Redistributions of source code must retain the above copyright
14+
notice, this list of conditions and the following disclaimer.
15+
* Redistributions in binary form must reproduce the above
16+
copyright notice, this list of conditions and the following
17+
disclaimer in the documentation and/or other materials provided
18+
with the distribution.
19+
* Neither the name of Lev Givon nor the names of any
20+
contributors may be used to endorse or promote products derived
21+
from this software without specific prior written permission.
22+
23+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

asv_bench/benchmarks/io/msgpack.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import warnings
2+
3+
import numpy as np
4+
5+
from pandas import DataFrame, date_range, read_msgpack
6+
import pandas.util.testing as tm
7+
8+
from ..pandas_vb_common import BaseIO
9+
10+
11+
class MSGPack(BaseIO):
12+
def setup(self):
13+
self.fname = "__test__.msg"
14+
N = 100000
15+
C = 5
16+
self.df = DataFrame(
17+
np.random.randn(N, C),
18+
columns=[f"float{i}" for i in range(C)],
19+
index=date_range("20000101", periods=N, freq="H"),
20+
)
21+
self.df["object"] = tm.makeStringIndex(N)
22+
with warnings.catch_warnings(record=True):
23+
self.df.to_msgpack(self.fname)
24+
25+
def time_read_msgpack(self):
26+
read_msgpack(self.fname)
27+
28+
def time_write_msgpack(self):
29+
self.df.to_msgpack(self.fname)
30+
31+
32+
from ..pandas_vb_common import setup # noqa: F401 isort:skip

ci/azure/posix.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,18 @@ jobs:
1919
ENV_FILE: ci/deps/azure-36-minimum_versions.yaml
2020
CONDA_PY: "36"
2121
PATTERN: "not slow and not network"
22-
2322
py36_locale_slow_old_np:
2423
ENV_FILE: ci/deps/azure-36-locale_slow.yaml
2524
CONDA_PY: "36"
2625
PATTERN: "slow"
27-
# pandas does not use the language (zh_CN), but should support diferent encodings (utf8)
28-
# we should test with encodings different than utf8, but doesn't seem like Ubuntu supports any
29-
LANG: "zh_CN.utf8"
30-
LC_ALL: "zh_CN.utf8"
26+
LOCALE_OVERRIDE: "zh_CN.UTF-8"
3127
EXTRA_APT: "language-pack-zh-hans"
3228

3329
py36_locale:
3430
ENV_FILE: ci/deps/azure-36-locale.yaml
3531
CONDA_PY: "36"
3632
PATTERN: "not slow and not network"
37-
LANG: "it_IT.utf8"
38-
LC_ALL: "it_IT.utf8"
39-
EXTRA_APT: "language-pack-it"
33+
LOCALE_OVERRIDE: "it_IT.UTF-8"
4034

4135
py36_32bit:
4236
ENV_FILE: ci/deps/azure-36-32bit.yaml
@@ -48,9 +42,7 @@ jobs:
4842
ENV_FILE: ci/deps/azure-37-locale.yaml
4943
CONDA_PY: "37"
5044
PATTERN: "not slow and not network"
51-
LANG: "zh_CN.utf8"
52-
LC_ALL: "zh_CN.utf8"
53-
EXTRA_APT: "language-pack-zh-hans"
45+
LOCALE_OVERRIDE: "zh_CN.UTF-8"
5446

5547
py37_np_dev:
5648
ENV_FILE: ci/deps/azure-37-numpydev.yaml
@@ -62,16 +54,10 @@ jobs:
6254

6355
steps:
6456
- script: |
65-
if [ "$(uname)" == "Linux" ]; then
66-
sudo apt-get update
67-
sudo apt-get install -y libc6-dev-i386 $EXTRA_APT
68-
fi
69-
displayName: 'Install extra packages'
70-
71-
- script: echo '##vso[task.prependpath]$(HOME)/miniconda3/bin'
72-
displayName: 'Set conda path'
73-
74-
- script: ci/setup_env.sh
57+
if [ "$(uname)" == "Linux" ]; then sudo apt-get install -y libc6-dev-i386 $EXTRA_APT; fi
58+
echo '##vso[task.prependpath]$(HOME)/miniconda3/bin'
59+
echo "Creating Environment"
60+
ci/setup_env.sh
7561
displayName: 'Setup environment and build pandas'
7662
7763
- script: |

ci/azure/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- bash: |
3535
source activate pandas-dev
3636
conda list
37-
python setup.py build_ext -q -i -j 4
37+
python setup.py build_ext -q -i
3838
python -m pip install --no-build-isolation -e .
3939
displayName: 'Build'
4040

ci/deps/azure-36-locale_slow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ dependencies:
1313
- pytest-azurepipelines
1414

1515
# pandas dependencies
16-
- beautifulsoup4=4.6.0
16+
- beautifulsoup4==4.6.0
1717
- bottleneck=1.2.*
1818
- lxml
1919
- matplotlib=2.2.2

ci/incremental/build.cmd

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
@rem https://github.com/numba/numba/blob/master/buildscripts/incremental/build.cmd
2+
3+
@rem Build extensions
4+
python setup.py build_ext -q -i
5+
6+
@rem Install pandas
7+
python -m pip install --no-build-isolation -e .
8+
9+
if %errorlevel% neq 0 exit /b %errorlevel%

ci/run_tests.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@
55
# https://github.com/pytest-dev/pytest/issues/1075
66
export PYTHONHASHSEED=$(python -c 'import random; print(random.randint(1, 4294967295))')
77

8+
if [ -n "$LOCALE_OVERRIDE" ]; then
9+
export LC_ALL="$LOCALE_OVERRIDE"
10+
export LANG="$LOCALE_OVERRIDE"
11+
PANDAS_LOCALE=`python -c 'import pandas; pandas.get_option("display.encoding")'`
12+
if [[ "$LOCALE_OVERRIDE" != "$PANDAS_LOCALE" ]]; then
13+
echo "pandas could not detect the locale. System locale: $LOCALE_OVERRIDE, pandas detected: $PANDAS_LOCALE"
14+
# TODO Not really aborting the tests until https://github.com/pandas-dev/pandas/issues/23923 is fixed
15+
# exit 1
16+
fi
17+
fi
18+
819
if [[ "not network" == *"$PATTERN"* ]]; then
920
export http_proxy=http://1.2.3.4 https_proxy=http://1.2.3.4;
1021
fi

0 commit comments

Comments
 (0)