Skip to content

Commit 94084b4

Browse files
authored
Merge branch 'master' into gh12541
2 parents 9621315 + be3f2ae commit 94084b4

File tree

201 files changed

+5461
-3337
lines changed

Some content is hidden

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

201 files changed

+5461
-3337
lines changed

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ install:
6565

6666
# install our build environment
6767
- cmd: conda config --set show_channel_urls true --set always_yes true --set changeps1 false
68-
- cmd: conda update -q conda
68+
#- cmd: conda update -q conda
69+
- cmd: conda install conda=4.2.15
6970
- cmd: conda config --set ssl_verify false
7071

7172
# add the pandas channel *before* defaults to have defaults take priority

asv_bench/benchmarks/frame_methods.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,20 @@ def time_frame_from_records_generator_nrows(self):
433433

434434

435435

436+
#-----------------------------------------------------------------------------
437+
# nunique
438+
439+
class frame_nunique(object):
440+
441+
def setup(self):
442+
self.data = np.random.randn(10000, 1000)
443+
self.df = DataFrame(self.data)
444+
445+
def time_frame_nunique(self):
446+
self.df.nunique()
447+
448+
449+
436450
#-----------------------------------------------------------------------------
437451
# duplicated
438452

asv_bench/benchmarks/groupby.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,22 @@ def time_groupby_int_count(self):
251251
self.df.groupby(['key1', 'key2']).count()
252252

253253

254+
#----------------------------------------------------------------------
255+
# nunique() speed
256+
257+
class groupby_nunique(object):
258+
259+
def setup(self):
260+
self.n = 10000
261+
self.df = DataFrame({'key1': randint(0, 500, size=self.n),
262+
'key2': randint(0, 100, size=self.n),
263+
'ints': randint(0, 1000, size=self.n),
264+
'ints2': randint(0, 1000, size=self.n), })
265+
266+
def time_groupby_nunique(self):
267+
self.df.groupby(['key1', 'key2']).nunique()
268+
269+
254270
#----------------------------------------------------------------------
255271
# group with different functions per column
256272

ci/ironcache/get.py

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

ci/ironcache/put.py

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

ci/lint.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ RET=0
88

99
if [ "$LINT" ]; then
1010

11-
# pandas/rpy is deprecated and will be removed.
1211
# pandas/src is C code, so no need to search there.
1312
echo "Linting *.py"
14-
flake8 pandas --filename=*.py --exclude pandas/rpy,pandas/src
13+
flake8 pandas --filename=*.py --exclude pandas/src
1514
if [ $? -ne "0" ]; then
1615
RET=1
1716
fi

ci/prep_cython_cache.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
ls "$HOME/.cache/"
44

55
PYX_CACHE_DIR="$HOME/.cache/pyxfiles"
6-
pyx_file_list=`find ${TRAVIS_BUILD_DIR} -name "*.pyx" -o -name "*.pxd"`
7-
pyx_cache_file_list=`find ${PYX_CACHE_DIR} -name "*.pyx" -o -name "*.pxd"`
6+
pyx_file_list=`find ${TRAVIS_BUILD_DIR} -name "*.pyx" -o -name "*.pxd" -o -name "*.pxi.in"`
7+
pyx_cache_file_list=`find ${PYX_CACHE_DIR} -name "*.pyx" -o -name "*.pxd" -o -name "*.pxi.in"`
88

99
CACHE_File="$HOME/.cache/cython_files.tar"
1010

ci/requirements-3.4_SLOW.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
python-dateutil
22
pytz
3-
numpy=1.9.3
3+
numpy=1.10*
44
cython

ci/requirements-3.4_SLOW.run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
python-dateutil
22
pytz
3-
numpy=1.9.3
3+
numpy=1.10*
44
openpyxl
55
xlsxwriter
66
xlrd

ci/requirements-3.4_SLOW.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 34_slow"
66

7-
conda install -n pandas -c conda-forge/label/rc -c conda-forge matplotlib
7+
conda install -n pandas -c conda-forge matplotlib

ci/requirements-3.6.pip

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +0,0 @@
1-
xlwt

ci/requirements-3.6.run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ scipy
55
openpyxl
66
xlsxwriter
77
xlrd
8-
# xlwt (installed via pip)
8+
xlwt
99
numexpr
1010
pytables
11-
# matplotlib (not avail on defaults ATM)
11+
matplotlib
1212
lxml
1313
html5lib
1414
jinja2

ci/speedpack/Vagrantfile

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

ci/speedpack/build.sh

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

ci/speedpack/nginx/nginx.conf.template

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

0 commit comments

Comments
 (0)