Skip to content

Commit 8556848

Browse files
committed
Merge branch 'master' of git://github.com/pandas-dev/pandas into clip
2 parents 4434475 + 520f87b commit 8556848

Some content is hidden

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

67 files changed

+1077
-364
lines changed

.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ matrix:
7474
# In allow_failures
7575
- os: linux
7676
env:
77-
- JOB="3.5_DOC" DOC=true
77+
- JOB="3.6_DOC" DOC=true
78+
addons:
79+
apt:
80+
packages:
81+
- xsel
7882
allow_failures:
7983
- os: linux
8084
env:
@@ -87,7 +91,7 @@ matrix:
8791
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
8892
- os: linux
8993
env:
90-
- JOB="3.5_DOC" DOC=true
94+
- JOB="3.6_DOC" DOC=true
9195

9296
before_install:
9397
- echo "before_install"

AUTHORS.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
About the Copyright Holders
2+
===========================
3+
4+
* Copyright (c) 2008-2011 AQR Capital Management, LLC
5+
6+
AQR Capital Management began pandas development in 2008. Development was
7+
led by Wes McKinney. AQR released the source under this license in 2009.
8+
* Copyright (c) 2011-2012, Lambda Foundry, Inc.
9+
10+
Wes is now an employee of Lambda Foundry, and remains the pandas project
11+
lead.
12+
* Copyright (c) 2011-2012, PyData Development Team
13+
14+
The PyData Development Team is the collection of developers of the PyData
15+
project. This includes all of the PyData sub-projects, including pandas. The
16+
core team that coordinates development on GitHub can be found here:
17+
http://github.com/pydata.
18+
19+
Full credits for pandas contributors can be found in the documentation.
20+
21+
Our Copyright Policy
22+
====================
23+
24+
PyData uses a shared copyright model. Each contributor maintains copyright
25+
over their contributions to PyData. However, it is important to note that
26+
these contributions are typically only changes to the repositories. Thus,
27+
the PyData source code, in its entirety, is not the copyright of any single
28+
person or institution. Instead, it is the collective copyright of the
29+
entire PyData Development Team. If individual contributors want to maintain
30+
a record of what changes/contributions they have specific copyright on,
31+
they should indicate their copyright in the commit message of the change
32+
when they commit the change to one of the PyData repositories.
33+
34+
With this in mind, the following banner should be used in any source code
35+
file to indicate the copyright and license terms:
36+
37+
```
38+
#-----------------------------------------------------------------------------
39+
# Copyright (c) 2012, PyData Development Team
40+
# All rights reserved.
41+
#
42+
# Distributed under the terms of the BSD Simplified License.
43+
#
44+
# The full license is in the LICENSE file, distributed with this software.
45+
#-----------------------------------------------------------------------------
46+
```
47+
48+
Other licenses can be found in the LICENSES directory.
49+
50+
License
51+
=======
52+
53+
pandas is distributed under a 3-clause ("Simplified" or "New") BSD
54+
license. Parts of NumPy, SciPy, numpydoc, bottleneck, which all have
55+
BSD-compatible licenses, are included. Their licenses follow the pandas
56+
license.
57+

LICENSE

Lines changed: 24 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,29 @@
1-
=======
2-
License
3-
=======
1+
BSD 3-Clause License
42

5-
pandas is distributed under a 3-clause ("Simplified" or "New") BSD
6-
license. Parts of NumPy, SciPy, numpydoc, bottleneck, which all have
7-
BSD-compatible licenses, are included. Their licenses follow the pandas
8-
license.
9-
10-
pandas license
11-
==============
12-
13-
Copyright (c) 2011-2012, Lambda Foundry, Inc. and PyData Development Team
14-
All rights reserved.
15-
16-
Copyright (c) 2008-2011 AQR Capital Management, LLC
3+
Copyright (c) 2008-2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
174
All rights reserved.
185

196
Redistribution and use in source and binary forms, with or without
20-
modification, are permitted provided that the following conditions are
21-
met:
22-
23-
* Redistributions of source code must retain the above copyright
24-
notice, this list of conditions and the following disclaimer.
25-
26-
* Redistributions in binary form must reproduce the above
27-
copyright notice, this list of conditions and the following
28-
disclaimer in the documentation and/or other materials provided
29-
with the distribution.
30-
31-
* Neither the name of the copyright holder nor the names of any
32-
contributors may be used to endorse or promote products derived
33-
from this software without specific prior written permission.
34-
35-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS
36-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
37-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
38-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
39-
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
40-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
41-
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
42-
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
43-
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
44-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
4529
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
46-
47-
About the Copyright Holders
48-
===========================
49-
50-
AQR Capital Management began pandas development in 2008. Development was
51-
led by Wes McKinney. AQR released the source under this license in 2009.
52-
Wes is now an employee of Lambda Foundry, and remains the pandas project
53-
lead.
54-
55-
The PyData Development Team is the collection of developers of the PyData
56-
project. This includes all of the PyData sub-projects, including pandas. The
57-
core team that coordinates development on GitHub can be found here:
58-
http://github.com/pydata.
59-
60-
Full credits for pandas contributors can be found in the documentation.
61-
62-
Our Copyright Policy
63-
====================
64-
65-
PyData uses a shared copyright model. Each contributor maintains copyright
66-
over their contributions to PyData. However, it is important to note that
67-
these contributions are typically only changes to the repositories. Thus,
68-
the PyData source code, in its entirety, is not the copyright of any single
69-
person or institution. Instead, it is the collective copyright of the
70-
entire PyData Development Team. If individual contributors want to maintain
71-
a record of what changes/contributions they have specific copyright on,
72-
they should indicate their copyright in the commit message of the change
73-
when they commit the change to one of the PyData repositories.
74-
75-
With this in mind, the following banner should be used in any source code
76-
file to indicate the copyright and license terms:
77-
78-
#-----------------------------------------------------------------------------
79-
# Copyright (c) 2012, PyData Development Team
80-
# All rights reserved.
81-
#
82-
# Distributed under the terms of the BSD Simplified License.
83-
#
84-
# The full license is in the LICENSE file, distributed with this software.
85-
#-----------------------------------------------------------------------------
86-
87-
Other licenses can be found in the LICENSES directory.

asv_bench/benchmarks/hdfstore_bench.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ def time_query_store_table(self):
9090
stop = self.df2.index[15000]
9191
self.store.select('table', where="index > start and index < stop")
9292

93+
def time_store_repr(self):
94+
repr(self.store)
95+
96+
def time_store_str(self):
97+
str(self.store)
98+
99+
def time_store_info(self):
100+
self.store.info()
101+
93102

94103
class HDF5Panel(object):
95104
goal_time = 0.2

ci/requirements-2.7.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ source activate pandas
44

55
echo "install 27"
66

7-
conda install -n pandas -c conda-forge feather-format
7+
conda install -n pandas -c conda-forge feather-format jemalloc=4.4.0

ci/requirements-2.7_BUILD_TEST.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ source activate pandas
44

55
echo "install 27 BUILD_TEST"
66

7-
conda install -n pandas -c conda-forge pyarrow dask
7+
conda install -n pandas -c conda-forge pyarrow dask jemalloc=4.4.0

ci/requirements-3.5.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ source activate pandas
44

55
echo "install 35"
66

7-
conda install -n pandas -c conda-forge feather-format
7+
conda install -n pandas -c conda-forge feather-format jemalloc=4.4.0

ci/requirements-3.6.run

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ html5lib
1414
jinja2
1515
sqlalchemy
1616
pymysql
17+
jemalloc=4.4.0
1718
feather-format
1819
# psycopg2 (not avail on defaults ATM)
1920
beautifulsoup4

ci/requirements-3.5_DOC.build renamed to ci/requirements-3.6_DOC.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
python=3.5*
1+
python=3.6*
22
python-dateutil
33
pytz
44
numpy

ci/requirements-3.5_DOC.run renamed to ci/requirements-3.6_DOC.run

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ipython
22
ipykernel
33
ipywidgets
4-
sphinx
4+
sphinx=1.5*
55
nbconvert
66
nbformat
77
notebook
@@ -12,7 +12,7 @@ lxml
1212
beautifulsoup4
1313
html5lib
1414
pytables
15-
openpyxl=1.8.5
15+
openpyxl
1616
xlrd
1717
xlwt
1818
xlsxwriter
@@ -21,4 +21,4 @@ numexpr
2121
bottleneck
2222
statsmodels
2323
xarray
24-
pyqt=4.11.4
24+
pyqt

ci/requirements-3.5_DOC.sh renamed to ci/requirements-3.6_DOC.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ echo "[install DOC_BUILD deps]"
66

77
pip install pandas-gbq
88

9-
conda install -n pandas -c conda-forge feather-format nbsphinx pandoc
9+
conda install -n pandas -c conda-forge feather-format nbsphinx pandoc jemalloc=4.4.0
1010

1111
conda install -n pandas -c r r rpy2 --yes

ci/requirements-3.6_NUMPY_DEV.build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
python=3.6*
2-
python-dateutil
32
pytz
43
cython

ci/requirements-3.6_NUMPY_DEV.build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ pip uninstall numpy -y
1111
PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"
1212
pip install --pre --upgrade --timeout=60 -f $PRE_WHEELS numpy scipy
1313

14+
# install dateutil from master
15+
pip install -U git+git://github.com/dateutil/dateutil.git
16+
1417
true

doc/source/advanced.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -948,6 +948,16 @@ On the other hand, if the index is not monotonic, then both slice bounds must be
948948
In [11]: df.loc[2:3, :]
949949
KeyError: 'Cannot get right slice bound for non-unique label: 3'
950950
951+
:meth:`Index.is_monotonic_increasing` and :meth:`Index.is_monotonic_decreasing` only check that
952+
an index is weakly monotonic. To check for strict montonicity, you can combine one of those with
953+
:meth:`Index.is_unique`
954+
955+
.. ipython:: python
956+
957+
weakly_monotonic = pd.Index(['a', 'b', 'c', 'c'])
958+
weakly_monotonic
959+
weakly_monotonic.is_monotonic_increasing
960+
weakly_monotonic.is_monotonic_increasing & weakly_monotonic.is_unique
951961
952962
Endpoints are inclusive
953963
~~~~~~~~~~~~~~~~~~~~~~~

doc/source/api.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ HDFStore: PyTables (HDF5)
9999
HDFStore.append
100100
HDFStore.get
101101
HDFStore.select
102+
HDFStore.info
102103

103104
Feather
104105
~~~~~~~
@@ -1286,8 +1287,6 @@ Attributes
12861287
Index.is_monotonic
12871288
Index.is_monotonic_increasing
12881289
Index.is_monotonic_decreasing
1289-
Index.is_strictly_monotonic_increasing
1290-
Index.is_strictly_monotonic_decreasing
12911290
Index.is_unique
12921291
Index.has_duplicates
12931292
Index.dtype

0 commit comments

Comments
 (0)