Skip to content

Commit 9d6d9af

Browse files
authored
Merge branch 'master' into fix_9217
2 parents 6939711 + 1f82f18 commit 9d6d9af

File tree

127 files changed

+3293
-942
lines changed

Some content is hidden

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

127 files changed

+3293
-942
lines changed

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ matrix:
182182
- CACHE_NAME="35_ascii"
183183
- USE_CACHE=true
184184
# In allow_failures
185-
- python: 2.7
185+
- python: 3.5
186186
env:
187-
- PYTHON_VERSION=2.7
187+
- PYTHON_VERSION=3.5
188188
- JOB_NAME: "doc_build"
189189
- FULL_DEPS=true
190190
- DOC_BUILD=true
@@ -275,9 +275,9 @@ matrix:
275275
- LOCALE_OVERRIDE="C"
276276
- CACHE_NAME="35_ascii"
277277
- USE_CACHE=true
278-
- python: 2.7
278+
- python: 3.5
279279
env:
280-
- PYTHON_VERSION=2.7
280+
- PYTHON_VERSION=3.5
281281
- JOB_NAME: "doc_build"
282282
- FULL_DEPS=true
283283
- DOC_BUILD=true

appveyor.yml

+13-22
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,19 @@ environment:
1717

1818
matrix:
1919

20-
# disable python 3.4 ATM
21-
#- PYTHON: "C:\\Python34_64"
22-
# PYTHON_VERSION: "3.4"
23-
# PYTHON_ARCH: "64"
24-
# CONDA_PY: "34"
25-
# CONDA_NPY: "19"
26-
27-
- PYTHON: "C:\\Python27_64"
20+
- CONDA_ROOT: "C:\\Miniconda3.5_64"
21+
PYTHON_VERSION: "3.6"
22+
PYTHON_ARCH: "64"
23+
CONDA_PY: "36"
24+
CONDA_NPY: "111"
25+
26+
- CONDA_ROOT: "C:\\Miniconda3.5_64"
2827
PYTHON_VERSION: "2.7"
2928
PYTHON_ARCH: "64"
3029
CONDA_PY: "27"
3130
CONDA_NPY: "110"
3231

33-
- PYTHON: "C:\\Python35_64"
32+
- CONDA_ROOT: "C:\\Miniconda3.5_64"
3433
PYTHON_VERSION: "3.5"
3534
PYTHON_ARCH: "64"
3635
CONDA_PY: "35"
@@ -45,9 +44,6 @@ platform:
4544
# all our python builds have to happen in tests_script...
4645
build: false
4746

48-
init:
49-
- "ECHO %PYTHON_VERSION% %PYTHON%"
50-
5147
install:
5248
# cancel older builds for the same PR
5349
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
@@ -58,7 +54,7 @@ install:
5854
# this installs the appropriate Miniconda (Py2/Py3, 32/64 bit)
5955
# updates conda & installs: conda-build jinja2 anaconda-client
6056
- powershell .\ci\install.ps1
61-
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
57+
- SET PATH=%CONDA_ROOT%;%CONDA_ROOT%\Scripts;%PATH%
6258
- echo "install"
6359
- cd
6460
- ls -ltr
@@ -69,22 +65,15 @@ install:
6965

7066
# install our build environment
7167
- cmd: conda config --set show_channel_urls true --set always_yes true --set changeps1 false
72-
- cmd: conda update -q conda
73-
74-
# fix conda-build version
75-
# https://github.com/conda/conda-build/issues/1001
76-
# disabling 3.4 as windows complains upon compiling byte
77-
# code
78-
79-
- cmd: conda install conda-build=1.21.7
68+
#- cmd: conda update -q conda
69+
- cmd: conda install conda=4.2.15
8070
- cmd: conda config --set ssl_verify false
8171

8272
# add the pandas channel *before* defaults to have defaults take priority
8373
- cmd: conda config --add channels conda-forge
8474
- cmd: conda config --add channels pandas
8575
- cmd: conda config --remove channels defaults
8676
- cmd: conda config --add channels defaults
87-
- cmd: conda install anaconda-client
8877

8978
# this is now the downloaded conda...
9079
- cmd: conda info -a
@@ -98,6 +87,8 @@ install:
9887
- SET REQ=ci\requirements-%PYTHON_VERSION%-%PYTHON_ARCH%.run
9988
- cmd: echo "installing requirements from %REQ%"
10089
- cmd: conda install -n pandas -q --file=%REQ%
90+
- cmd: conda list -n pandas
91+
- cmd: echo "installing requirements from %REQ% - done"
10192
- ps: conda install -n pandas (conda build ci\appveyor.recipe -q --output)
10293

10394
test_script:

asv_bench/benchmarks/groupby.py

-3
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,3 @@ def time_shift(self):
690690
def time_transform_dataframe(self):
691691
# GH 12737
692692
self.df_nans.groupby('key').transform('first')
693-
694-
695-

asv_bench/benchmarks/inference.py

+20-1
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,23 @@ def setup(self, dtype, downcast):
9595
self.data = self.data_dict[dtype]
9696

9797
def time_downcast(self, dtype, downcast):
98-
pd.to_numeric(self.data, downcast=downcast)
98+
pd.to_numeric(self.data, downcast=downcast)
99+
100+
101+
class MaybeConvertNumeric(object):
102+
103+
def setup(self):
104+
n = 1000000
105+
arr = np.repeat([2**63], n)
106+
arr = arr + np.arange(n).astype('uint64')
107+
arr = np.array([arr[i] if i%2 == 0 else
108+
str(arr[i]) for i in range(n)],
109+
dtype=object)
110+
111+
arr[-1] = -1
112+
self.data = arr
113+
self.na_values = set()
114+
115+
def time_convert(self):
116+
pd.lib.maybe_convert_numeric(self.data, self.na_values,
117+
coerce_numeric=False)

asv_bench/benchmarks/io_bench.py

+23
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,29 @@ def time_read_parse_dates_iso8601(self):
128128
read_csv(StringIO(self.data), header=None, names=['foo'], parse_dates=['foo'])
129129

130130

131+
class read_uint64_integers(object):
132+
goal_time = 0.2
133+
134+
def setup(self):
135+
self.na_values = [2**63 + 500]
136+
137+
self.arr1 = np.arange(10000).astype('uint64') + 2**63
138+
self.data1 = '\n'.join(map(lambda x: str(x), self.arr1))
139+
140+
self.arr2 = self.arr1.copy().astype(object)
141+
self.arr2[500] = -1
142+
self.data2 = '\n'.join(map(lambda x: str(x), self.arr2))
143+
144+
def time_read_uint64(self):
145+
read_csv(StringIO(self.data1), header=None)
146+
147+
def time_read_uint64_neg_values(self):
148+
read_csv(StringIO(self.data2), header=None)
149+
150+
def time_read_uint64_na_values(self):
151+
read_csv(StringIO(self.data1), header=None, na_values=self.na_values)
152+
153+
131154
class write_csv_standard(object):
132155
goal_time = 0.2
133156

asv_bench/benchmarks/plotting.py

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ def setup(self):
2020
def time_plot_regular(self):
2121
self.df.plot()
2222

23+
def time_plot_regular_compat(self):
24+
self.df.plot(x_compat=True)
25+
2326

2427
class Misc(object):
2528
goal_time = 0.6

ci/appveyor.recipe/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: pandas
3-
version: 0.18.1
3+
version: 0.20.0
44

55
build:
66
number: {{environ.get('APPVEYOR_BUILD_NUMBER', 0)}} # [win]

ci/install.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@ function UpdateConda ($python_home) {
8484

8585

8686
function main () {
87-
InstallMiniconda $env:PYTHON_VERSION $env:PYTHON_ARCH $env:PYTHON
88-
UpdateConda $env:PYTHON
89-
InstallCondaPackages $env:PYTHON "conda-build jinja2 anaconda-client"
87+
InstallMiniconda "3.5" $env:PYTHON_ARCH $env:CONDA_ROOT
88+
UpdateConda $env:CONDA_ROOT
89+
InstallCondaPackages $env:CONDA_ROOT "conda-build jinja2 anaconda-client"
9090
}
9191

9292
main

ci/install_appveyor.ps1

-133
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
dateutil
1+
python-dateutil
22
pytz
33
numpy
44
cython

ci/requirements-2.7_DOC_BUILD.run renamed to ci/requirements-3.5_DOC_BUILD.run

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ notebook
77
matplotlib
88
scipy
99
lxml
10-
beautiful-soup
10+
beautifulsoup4
1111
html5lib
1212
pytables
1313
openpyxl=1.8.5
File renamed without changes.

ci/requirements-3.6-64.run

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
python-dateutil
2+
pytz
3+
numpy
4+
openpyxl
5+
xlsxwriter
6+
xlrd
7+
#xlwt
8+
scipy
9+
feather-format
10+
numexpr
11+
pytables
12+
matplotlib
13+
blosc

ci/requirements-3.6.pip

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
xlwt

ci/requirements-3.6.run

+16
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,19 @@ python-dateutil
22
pytz
33
numpy
44
scipy
5+
openpyxl
6+
xlsxwriter
7+
xlrd
8+
# xlwt (installed via pip)
9+
numexpr
10+
pytables
11+
# matplotlib (not avail on defaults ATM)
12+
lxml
13+
html5lib
14+
jinja2
15+
sqlalchemy
16+
pymysql
17+
# psycopg2 (not avail on defaults ATM)
18+
beautifulsoup4
19+
s3fs
20+
xarray

ci/requirements-3.6.sh

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
source activate pandas
4+
5+
echo "install 36"
6+
7+
conda install -n pandas -c conda-forge feather-format

doc/_templates/autosummary/accessor.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
.. currentmodule:: {{ module.split('.')[0] }}
55

6-
.. automethod:: {{ [module.split('.')[1], objname]|join('.') }}
6+
.. autoaccessor:: {{ (module.split('.')[1:] + [objname]) | join('.') }}

0 commit comments

Comments
 (0)