Skip to content

Commit 8b2fd36

Browse files
committed
2 parents 23303e0 + 34c4ffd commit 8b2fd36

File tree

379 files changed

+12847
-8626
lines changed

Some content is hidden

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

379 files changed

+12847
-8626
lines changed

.github/ISSUE_TEMPLATE.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@
88

99
[this should explain **why** the current behaviour is a problem and why the expected output is a better solution.]
1010

11+
**Note**: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
12+
13+
**Note**: Many problems can be resolved by simply upgrading `pandas` to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if `master` addresses this issue, but that is not necessary.
14+
1115
#### Expected Output
1216

1317
#### Output of ``pd.show_versions()``
1418

1519
<details>
16-
# Paste the output here pd.show_versions() here
20+
21+
[paste the output of ``pd.show_versions()`` here below this line]
1722

1823
</details>

.github/PULL_REQUEST_TEMPLATE.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- [ ] closes #xxxx
2-
- [ ] tests added / passed
3-
- [ ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
4-
- [ ] whatsnew entry
1+
- [ ] closes #xxxx
2+
- [ ] tests added / passed
3+
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
4+
- [ ] whatsnew entry

.pep8speaks.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# File : .pep8speaks.yml
2+
3+
scanner:
4+
diff_only: True # If True, errors caused by only the patch are shown
5+
6+
pycodestyle:
7+
max-line-length: 79
8+
ignore: # Errors and warnings to ignore
9+
- E731
10+
- E402

.travis.yml

+18-14
Original file line numberDiff line numberDiff line change
@@ -35,59 +35,63 @@ matrix:
3535
language: generic
3636
env:
3737
- JOB="3.5_OSX" TEST_ARGS="--skip-slow --skip-network"
38-
- os: linux
38+
- dist: trusty
3939
env:
4040
- JOB="2.7_LOCALE" TEST_ARGS="--only-slow --skip-network" LOCALE_OVERRIDE="zh_CN.UTF-8"
4141
addons:
4242
apt:
4343
packages:
4444
- language-pack-zh-hans
45-
- os: linux
45+
- dist: trusty
4646
env:
4747
- JOB="2.7" TEST_ARGS="--skip-slow" LINT=true
4848
addons:
4949
apt:
5050
packages:
5151
- python-gtk2
52-
- os: linux
52+
- dist: trusty
5353
env:
5454
- JOB="3.5" TEST_ARGS="--skip-slow --skip-network" COVERAGE=true
5555
addons:
5656
apt:
5757
packages:
5858
- xsel
59-
- os: linux
59+
- dist: trusty
6060
env:
6161
- JOB="3.6" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate" CONDA_FORGE=true
6262
# In allow_failures
63-
- os: linux
63+
- dist: trusty
6464
env:
6565
- JOB="2.7_SLOW" TEST_ARGS="--only-slow --skip-network"
6666
# In allow_failures
67-
- os: linux
67+
- dist: trusty
6868
env:
6969
- JOB="2.7_BUILD_TEST" TEST_ARGS="--skip-slow" BUILD_TEST=true
7070
# In allow_failures
71-
- os: linux
71+
- dist: trusty
7272
env:
7373
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
7474
# In allow_failures
75-
- os: linux
75+
- dist: trusty
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:
79-
- os: linux
83+
- dist: trusty
8084
env:
8185
- JOB="2.7_SLOW" TEST_ARGS="--only-slow --skip-network"
82-
- os: linux
86+
- dist: trusty
8387
env:
8488
- JOB="2.7_BUILD_TEST" TEST_ARGS="--skip-slow" BUILD_TEST=true
85-
- os: linux
89+
- dist: trusty
8690
env:
8791
- JOB="3.6_NUMPY_DEV" TEST_ARGS="--skip-slow --skip-network" PANDAS_TESTING_MODE="deprecate"
88-
- os: linux
92+
- dist: trusty
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

+57
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

+24-82
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.

README.md

+29-29
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
<tr>
5454
<td>Conda</td>
5555
<td>
56-
<a href="http://pandas.pydata.org">
56+
<a href="https://pandas.pydata.org">
5757
<img src="http://pubbadges.s3-website-us-east-1.amazonaws.com/pkgs-downloads-pandas.png" alt="conda default downloads" />
5858
</a>
5959
</td>
6060
</tr>
6161
<tr>
6262
<td>Conda-forge</td>
6363
<td>
64-
<a href="http://pandas.pydata.org">
64+
<a href="https://pandas.pydata.org">
6565
<img src="https://anaconda.org/conda-forge/pandas/badges/downloads.svg" alt="conda-forge downloads" />
6666
</a>
6767
</td>
@@ -123,31 +123,31 @@ Here are just a few of the things that pandas does well:
123123
moving window linear regressions, date shifting and lagging, etc.
124124

125125

126-
[missing-data]: http://pandas.pydata.org/pandas-docs/stable/missing_data.html#working-with-missing-data
127-
[insertion-deletion]: http://pandas.pydata.org/pandas-docs/stable/dsintro.html#column-selection-addition-deletion
128-
[alignment]: http://pandas.pydata.org/pandas-docs/stable/dsintro.html?highlight=alignment#intro-to-data-structures
129-
[groupby]: http://pandas.pydata.org/pandas-docs/stable/groupby.html#group-by-split-apply-combine
130-
[conversion]: http://pandas.pydata.org/pandas-docs/stable/dsintro.html#dataframe
131-
[slicing]: http://pandas.pydata.org/pandas-docs/stable/indexing.html#slicing-ranges
132-
[fancy-indexing]: http://pandas.pydata.org/pandas-docs/stable/indexing.html#advanced-indexing-with-ix
133-
[subsetting]: http://pandas.pydata.org/pandas-docs/stable/indexing.html#boolean-indexing
134-
[merging]: http://pandas.pydata.org/pandas-docs/stable/merging.html#database-style-dataframe-joining-merging
135-
[joining]: http://pandas.pydata.org/pandas-docs/stable/merging.html#joining-on-index
136-
[reshape]: http://pandas.pydata.org/pandas-docs/stable/reshaping.html#reshaping-and-pivot-tables
137-
[pivot-table]: http://pandas.pydata.org/pandas-docs/stable/reshaping.html#pivot-tables-and-cross-tabulations
138-
[mi]: http://pandas.pydata.org/pandas-docs/stable/indexing.html#hierarchical-indexing-multiindex
139-
[flat-files]: http://pandas.pydata.org/pandas-docs/stable/io.html#csv-text-files
140-
[excel]: http://pandas.pydata.org/pandas-docs/stable/io.html#excel-files
141-
[db]: http://pandas.pydata.org/pandas-docs/stable/io.html#sql-queries
142-
[hdfstore]: http://pandas.pydata.org/pandas-docs/stable/io.html#hdf5-pytables
143-
[timeseries]: http://pandas.pydata.org/pandas-docs/stable/timeseries.html#time-series-date-functionality
126+
[missing-data]: https://pandas.pydata.org/pandas-docs/stable/missing_data.html#working-with-missing-data
127+
[insertion-deletion]: https://pandas.pydata.org/pandas-docs/stable/dsintro.html#column-selection-addition-deletion
128+
[alignment]: https://pandas.pydata.org/pandas-docs/stable/dsintro.html?highlight=alignment#intro-to-data-structures
129+
[groupby]: https://pandas.pydata.org/pandas-docs/stable/groupby.html#group-by-split-apply-combine
130+
[conversion]: https://pandas.pydata.org/pandas-docs/stable/dsintro.html#dataframe
131+
[slicing]: https://pandas.pydata.org/pandas-docs/stable/indexing.html#slicing-ranges
132+
[fancy-indexing]: https://pandas.pydata.org/pandas-docs/stable/indexing.html#advanced-indexing-with-ix
133+
[subsetting]: https://pandas.pydata.org/pandas-docs/stable/indexing.html#boolean-indexing
134+
[merging]: https://pandas.pydata.org/pandas-docs/stable/merging.html#database-style-dataframe-joining-merging
135+
[joining]: https://pandas.pydata.org/pandas-docs/stable/merging.html#joining-on-index
136+
[reshape]: https://pandas.pydata.org/pandas-docs/stable/reshaping.html#reshaping-and-pivot-tables
137+
[pivot-table]: https://pandas.pydata.org/pandas-docs/stable/reshaping.html#pivot-tables-and-cross-tabulations
138+
[mi]: https://pandas.pydata.org/pandas-docs/stable/indexing.html#hierarchical-indexing-multiindex
139+
[flat-files]: https://pandas.pydata.org/pandas-docs/stable/io.html#csv-text-files
140+
[excel]: https://pandas.pydata.org/pandas-docs/stable/io.html#excel-files
141+
[db]: https://pandas.pydata.org/pandas-docs/stable/io.html#sql-queries
142+
[hdfstore]: https://pandas.pydata.org/pandas-docs/stable/io.html#hdf5-pytables
143+
[timeseries]: https://pandas.pydata.org/pandas-docs/stable/timeseries.html#time-series-date-functionality
144144

145145
## Where to get it
146146
The source code is currently hosted on GitHub at:
147-
http://github.com/pandas-dev/pandas
147+
https://github.com/pandas-dev/pandas
148148

149149
Binary installers for the latest released version are available at the [Python
150-
package index](http://pypi.python.org/pypi/pandas/) and on conda.
150+
package index](https://pypi.python.org/pypi/pandas) and on conda.
151151

152152
```sh
153153
# conda
@@ -161,11 +161,11 @@ pip install pandas
161161

162162
## Dependencies
163163
- [NumPy](http://www.numpy.org): 1.7.0 or higher
164-
- [python-dateutil](http://labix.org/python-dateutil): 1.5 or higher
165-
- [pytz](http://pytz.sourceforge.net)
164+
- [python-dateutil](https://labix.org/python-dateutil): 1.5 or higher
165+
- [pytz](https://pythonhosted.org/pytz)
166166
- Needed for time zone support with ``pandas.date_range``
167167

168-
See the [full installation instructions](http://pandas.pydata.org/pandas-docs/stable/install.html#dependencies)
168+
See the [full installation instructions](https://pandas.pydata.org/pandas-docs/stable/install.html#dependencies)
169169
for recommended and optional dependencies.
170170

171171
## Installation from sources
@@ -197,13 +197,13 @@ mode](https://pip.pypa.io/en/latest/reference/pip_install.html#editable-installs
197197
pip install -e .
198198
```
199199

200-
See the full instructions for [installing from source](http://pandas.pydata.org/pandas-docs/stable/install.html#installing-from-source).
200+
See the full instructions for [installing from source](https://pandas.pydata.org/pandas-docs/stable/install.html#installing-from-source).
201201

202202
## License
203-
BSD
203+
[BSD 3](LICENSE)
204204

205205
## Documentation
206-
The official documentation is hosted on PyData.org: http://pandas.pydata.org/pandas-docs/stable/
206+
The official documentation is hosted on PyData.org: https://pandas.pydata.org/pandas-docs/stable
207207

208208
The Sphinx documentation should provide a good starting point for learning how
209209
to use the library. Expect the docs to continue to expand as time goes on.
@@ -223,7 +223,7 @@ Most development discussion is taking place on github in this repo. Further, the
223223
## Contributing to pandas
224224
All contributions, bug reports, bug fixes, documentation improvements, enhancements and ideas are welcome.
225225

226-
A detailed overview on how to contribute can be found in the **[contributing guide.](http://pandas.pydata.org/pandas-docs/stable/contributing.html)**
226+
A detailed overview on how to contribute can be found in the **[contributing guide.](https://pandas.pydata.org/pandas-docs/stable/contributing.html)**
227227

228228
If you are simply looking to start working with the pandas codebase, navigate to the [GitHub “issues” tab](https://github.com/pandas-dev/pandas/issues) and start looking through interesting issues. There are a number of issues listed under [Docs](https://github.com/pandas-dev/pandas/issues?labels=Docs&sort=updated&state=open) and [Difficulty Novice](https://github.com/pandas-dev/pandas/issues?q=is%3Aopen+is%3Aissue+label%3A%22Difficulty+Novice%22) where you could start out.
229229

0 commit comments

Comments
 (0)