Skip to content

Commit 2e17322

Browse files
committed
Merge remote-tracking branch 'upstream/master' into allow-special-characters-query
2 parents 291cd40 + f437a04 commit 2e17322

File tree

103 files changed

+682
-536
lines changed

Some content is hidden

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

103 files changed

+682
-536
lines changed

asv_bench/benchmarks/index_object.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
Float64Index,
88
Index,
99
IntervalIndex,
10+
MultiIndex,
1011
RangeIndex,
1112
Series,
1213
date_range,
@@ -111,6 +112,18 @@ def time_get_loc_dec(self):
111112
self.idx_dec.get_loc(100000)
112113

113114

115+
class IndexEquals:
116+
def setup(self):
117+
idx_large_fast = RangeIndex(100000)
118+
idx_small_slow = date_range(start="1/1/2012", periods=1)
119+
self.mi_large_slow = MultiIndex.from_product([idx_large_fast, idx_small_slow])
120+
121+
self.idx_non_object = RangeIndex(1)
122+
123+
def time_non_object_equals_multiindex(self):
124+
self.idx_non_object.equals(self.mi_large_slow)
125+
126+
114127
class IndexAppend:
115128
def setup(self):
116129

asv_bench/benchmarks/multiindex_object.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import numpy as np
44

5-
from pandas import DataFrame, MultiIndex, date_range
5+
from pandas import DataFrame, MultiIndex, RangeIndex, date_range
66
import pandas.util.testing as tm
77

88

@@ -147,4 +147,16 @@ def time_categorical_level(self):
147147
self.df.set_index(["a", "b"])
148148

149149

150+
class Equals:
151+
def setup(self):
152+
idx_large_fast = RangeIndex(100000)
153+
idx_small_slow = date_range(start="1/1/2012", periods=1)
154+
self.mi_large_slow = MultiIndex.from_product([idx_large_fast, idx_small_slow])
155+
156+
self.idx_non_object = RangeIndex(1)
157+
158+
def time_equals_non_object_index(self):
159+
self.mi_large_slow.equals(self.idx_non_object)
160+
161+
150162
from .pandas_vb_common import setup # noqa: F401 isort:skip

ci/azure/posix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ jobs:
2020
CONDA_PY: "36"
2121
PATTERN: "not slow and not network"
2222
py36_locale_slow_old_np:
23-
ENV_FILE: ci/deps/azure-36-locale.yaml
23+
ENV_FILE: ci/deps/azure-36-locale_slow.yaml
2424
CONDA_PY: "36"
2525
PATTERN: "slow"
2626
LOCALE_OVERRIDE: "zh_CN.UTF-8"
2727
EXTRA_APT: "language-pack-zh-hans"
2828

29-
py36_locale_slow:
30-
ENV_FILE: ci/deps/azure-36-locale_slow.yaml
29+
py36_locale:
30+
ENV_FILE: ci/deps/azure-36-locale.yaml
3131
CONDA_PY: "36"
3232
PATTERN: "not slow and not network"
3333
LOCALE_OVERRIDE: "it_IT.UTF-8"

ci/code_checks.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,12 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
105105

106106
# Imports - Check formatting using isort see setup.cfg for settings
107107
MSG='Check import format using isort ' ; echo $MSG
108-
isort --recursive --check-only pandas asv_bench
108+
ISORT_CMD="isort --recursive --check-only pandas asv_bench"
109+
if [[ "$GITHUB_ACTIONS" == "true" ]]; then
110+
eval $ISORT_CMD | awk '{print "##[error]" $0}'; RET=$(($RET + ${PIPESTATUS[0]}))
111+
else
112+
eval $ISORT_CMD
113+
fi
109114
RET=$(($RET + $?)) ; echo $MSG "DONE"
110115

111116
fi

ci/deps/azure-36-locale.yaml

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,27 @@ dependencies:
1313
- pytest-azurepipelines
1414

1515
# pandas dependencies
16-
- beautifulsoup4==4.6.0
17-
- bottleneck=1.2.*
16+
- beautifulsoup4
17+
- gcsfs
18+
- html5lib
19+
- ipython
20+
- jinja2
1821
- lxml
19-
- matplotlib=2.2.2
20-
- numpy=1.14.*
21-
- openpyxl=2.4.8
22-
- python-dateutil
23-
- python-blosc
24-
- pytz=2017.2
25-
- scipy
26-
- sqlalchemy=1.1.4
27-
- xlrd=1.1.0
28-
- xlsxwriter=0.9.8
29-
- xlwt=1.2.0
22+
- matplotlib=3.0.*
23+
- nomkl
24+
- numexpr
25+
- numpy=1.15.*
26+
- openpyxl
3027
# lowest supported version of pyarrow (putting it here instead of in
3128
# azure-36-minimum_versions because it needs numpy >= 1.14)
3229
- pyarrow=0.12
33-
- pip
34-
- pip:
35-
- html5lib==1.0b2
30+
- pytables
31+
- python-dateutil
32+
- pytz
33+
- s3fs
34+
- scipy
35+
- xarray
36+
- xlrd
37+
- xlsxwriter
38+
- xlwt
39+
- moto

ci/deps/azure-36-locale_slow.yaml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,20 @@ dependencies:
1313
- pytest-azurepipelines
1414

1515
# pandas dependencies
16-
- beautifulsoup4
17-
- gcsfs
18-
- html5lib
19-
- ipython
20-
- jinja2
16+
- beautifulsoup4==4.6.0
17+
- bottleneck=1.2.*
2118
- lxml
22-
- matplotlib=3.0.*
23-
- nomkl
24-
- numexpr
25-
- numpy=1.15.*
26-
- openpyxl
27-
- pytables
19+
- matplotlib=2.2.2
20+
- numpy=1.14.*
21+
- openpyxl=2.4.8
2822
- python-dateutil
29-
- pytz
30-
- s3fs
23+
- python-blosc
24+
- pytz=2017.2
3125
- scipy
32-
- xarray
33-
- xlrd
34-
- xlsxwriter
35-
- xlwt
36-
- moto
26+
- sqlalchemy=1.1.4
27+
- xlrd=1.1.0
28+
- xlsxwriter=0.9.8
29+
- xlwt=1.2.0
30+
- pip
31+
- pip:
32+
- html5lib==1.0b2

doc/redirects.csv

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ generated/pandas.DataFrame.clip_upper,../reference/api/pandas.DataFrame.clip_upp
319319
generated/pandas.DataFrame.columns,../reference/api/pandas.DataFrame.columns
320320
generated/pandas.DataFrame.combine_first,../reference/api/pandas.DataFrame.combine_first
321321
generated/pandas.DataFrame.combine,../reference/api/pandas.DataFrame.combine
322-
generated/pandas.DataFrame.compound,../reference/api/pandas.DataFrame.compound
323322
generated/pandas.DataFrame.convert_objects,../reference/api/pandas.DataFrame.convert_objects
324323
generated/pandas.DataFrame.copy,../reference/api/pandas.DataFrame.copy
325324
generated/pandas.DataFrame.corr,../reference/api/pandas.DataFrame.corr
@@ -950,7 +949,6 @@ generated/pandas.Series.clip_lower,../reference/api/pandas.Series.clip_lower
950949
generated/pandas.Series.clip_upper,../reference/api/pandas.Series.clip_upper
951950
generated/pandas.Series.combine_first,../reference/api/pandas.Series.combine_first
952951
generated/pandas.Series.combine,../reference/api/pandas.Series.combine
953-
generated/pandas.Series.compound,../reference/api/pandas.Series.compound
954952
generated/pandas.Series.compress,../reference/api/pandas.Series.compress
955953
generated/pandas.Series.convert_objects,../reference/api/pandas.Series.convert_objects
956954
generated/pandas.Series.copy,../reference/api/pandas.Series.copy

doc/source/getting_started/10min.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ will be completed:
7575
df2.all df2.columns
7676
df2.any df2.combine
7777
df2.append df2.combine_first
78-
df2.apply df2.compound
79-
df2.applymap df2.consolidate
78+
df2.apply df2.consolidate
79+
df2.applymap
8080
df2.D
8181

8282
As you can see, the columns ``A``, ``B``, ``C``, and ``D`` are automatically

doc/source/reference/frame.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ Computations / descriptive stats
137137
DataFrame.all
138138
DataFrame.any
139139
DataFrame.clip
140-
DataFrame.compound
141140
DataFrame.corr
142141
DataFrame.corrwith
143142
DataFrame.count

doc/source/reference/series.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ Computations / descriptive stats
174174
Series.is_monotonic_increasing
175175
Series.is_monotonic_decreasing
176176
Series.value_counts
177-
Series.compound
178177

179178
Reindexing / selection / label manipulation
180179
-------------------------------------------

0 commit comments

Comments
 (0)