diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index 0c1d861ce0839..5b76eeba115a4 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -96,6 +96,8 @@ def time_dict_rename_both_axes(self): class Iteration: + # mem_itertuples_* benchmarks are slow + timeout = 120 def setup(self): N = 1000 diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 4dfce079dd09c..3097ada6d2022 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -1,12 +1,11 @@ from functools import partial from itertools import product from string import ascii_letters -import warnings import numpy as np from pandas import ( - Categorical, DataFrame, MultiIndex, Series, TimeGrouper, Timestamp, + Categorical, DataFrame, MultiIndex, Series, Timestamp, date_range, period_range) import pandas.util.testing as tm @@ -301,10 +300,6 @@ def setup(self): def time_multi_size(self): self.df.groupby(['key1', 'key2']).size() - def time_dt_timegrouper_size(self): - with warnings.catch_warnings(record=True): - self.df.groupby(TimeGrouper(key='dates', freq='M')).size() - def time_category_size(self): self.draws.groupby(self.cats).size() diff --git a/asv_bench/benchmarks/io/parsers.py b/asv_bench/benchmarks/io/parsers.py index 493955d394443..edba0358c821a 100644 --- a/asv_bench/benchmarks/io/parsers.py +++ b/asv_bench/benchmarks/io/parsers.py @@ -1,7 +1,11 @@ import numpy as np -from pandas._libs.tslibs.parsing import ( - _concat_date_cols, _does_string_look_like_datetime) +try: + from pandas._libs.tslibs.parsing import ( + _concat_date_cols, _does_string_look_like_datetime) +except ImportError: + # Avoid whole benchmark suite import failure on asv (currently 0.4) + pass class DoesStringLookLikeDatetime(object): diff --git a/azure-pipelines.yml b/azure-pipelines.yml index eee38dadfab90..17eaee5458af8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -97,10 +97,11 @@ jobs: - script: | export PATH=$HOME/miniconda3/bin:$PATH source activate pandas-dev + cd asv_bench + asv check -E existing git remote add upstream https://github.com/pandas-dev/pandas.git git fetch upstream if git diff upstream/master --name-only | grep -q "^asv_bench/"; then - cd asv_bench asv machine --yes ASV_OUTPUT="$(asv dev)" if [[ $(echo "$ASV_OUTPUT" | grep "failed") ]]; then