Skip to content

Commit 7188f20

Browse files
committed
Merge branch 'master' into faster_masked_transpose
2 parents 7daa4cc + 80b3fee commit 7188f20

File tree

97 files changed

+2075
-1162
lines changed

Some content is hidden

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

97 files changed

+2075
-1162
lines changed

.github/workflows/cache-cleanup.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Clean closed branch caches
2+
on:
3+
pull_request:
4+
types:
5+
- closed
6+
7+
jobs:
8+
cleanup:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Clean Cache
12+
run: |
13+
gh extension install actions/gh-actions-cache
14+
15+
REPO=${{ github.repository }}
16+
BRANCH="refs/pull/${{ github.event.pull_request.number }}/merge"
17+
18+
echo "Fetching list of cache key"
19+
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 )
20+
21+
## Setting this to not fail the workflow while deleting cache keys.
22+
set +e
23+
echo "Deleting caches..."
24+
for cacheKey in $cacheKeysForPR
25+
do
26+
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
27+
done
28+
echo "Done"
29+
env:
30+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

asv_bench/benchmarks/indexing.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
lower-level methods directly on Index and subclasses, see index_object.py,
44
indexing_engine.py, and index_cached.py
55
"""
6+
from datetime import datetime
67
import warnings
78

89
import numpy as np
@@ -531,4 +532,25 @@ def time_chained_indexing(self, mode):
531532
df2["C"] = 1.0
532533

533534

535+
class Block:
536+
params = [
537+
(True, "True"),
538+
(np.array(True), "np.array(True)"),
539+
]
540+
541+
def setup(self, true_value, mode):
542+
self.df = DataFrame(
543+
False,
544+
columns=np.arange(500).astype(str),
545+
index=date_range("2010-01-01", "2011-01-01"),
546+
)
547+
548+
self.true_value = true_value
549+
550+
def time_test(self, true_value, mode):
551+
start = datetime(2010, 5, 1)
552+
end = datetime(2010, 9, 1)
553+
self.df.loc[start:end, :] = true_value
554+
555+
534556
from .pandas_vb_common import setup # noqa: F401 isort:skip

ci/code_checks.sh

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -80,31 +80,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8080

8181
MSG='Partially validate docstrings (EX01)' ; echo $MSG
8282
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX01 --ignore_functions \
83-
pandas.Series.item \
84-
pandas.Series.pipe \
85-
pandas.Series.mode \
86-
pandas.Series.is_unique \
87-
pandas.Series.is_monotonic_increasing \
88-
pandas.Series.is_monotonic_decreasing \
8983
pandas.Series.backfill \
90-
pandas.Series.bfill \
9184
pandas.Series.ffill \
9285
pandas.Series.pad \
93-
pandas.Series.argsort \
94-
pandas.Series.reorder_levels \
95-
pandas.Series.ravel \
96-
pandas.Series.first_valid_index \
97-
pandas.Series.last_valid_index \
98-
pandas.Series.dt.date \
99-
pandas.Series.dt.time \
100-
pandas.Series.dt.timetz \
101-
pandas.Series.dt.dayofyear \
102-
pandas.Series.dt.day_of_year \
103-
pandas.Series.dt.quarter \
104-
pandas.Series.dt.daysinmonth \
105-
pandas.Series.dt.days_in_month \
106-
pandas.Series.dt.tz \
107-
pandas.Series.dt.end_time \
10886
pandas.Series.dt.days \
10987
pandas.Series.dt.seconds \
11088
pandas.Series.dt.microseconds \
@@ -191,12 +169,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
191169
pandas.Timedelta.to_numpy \
192170
pandas.Timedelta.total_seconds \
193171
pandas.arrays.TimedeltaArray \
194-
pandas.Period.end_time \
195-
pandas.Period.freqstr \
196-
pandas.Period.is_leap_year \
197-
pandas.Period.month \
198-
pandas.Period.quarter \
199-
pandas.Period.year \
200172
pandas.Period.asfreq \
201173
pandas.Period.now \
202174
pandas.arrays.PeriodArray \
@@ -319,9 +291,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
319291
pandas.Index.fillna \
320292
pandas.Index.dropna \
321293
pandas.Index.astype \
322-
pandas.Index.item \
323294
pandas.Index.map \
324-
pandas.Index.ravel \
325295
pandas.Index.to_list \
326296
pandas.Index.append \
327297
pandas.Index.join \
@@ -431,7 +401,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
431401
pandas.core.groupby.SeriesGroupBy.get_group \
432402
pandas.core.groupby.DataFrameGroupBy.all \
433403
pandas.core.groupby.DataFrameGroupBy.any \
434-
pandas.core.groupby.DataFrameGroupBy.bfill \
435404
pandas.core.groupby.DataFrameGroupBy.count \
436405
pandas.core.groupby.DataFrameGroupBy.cummax \
437406
pandas.core.groupby.DataFrameGroupBy.cummin \
@@ -454,16 +423,13 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
454423
pandas.core.groupby.DataFrameGroupBy.var \
455424
pandas.core.groupby.SeriesGroupBy.all \
456425
pandas.core.groupby.SeriesGroupBy.any \
457-
pandas.core.groupby.SeriesGroupBy.bfill \
458426
pandas.core.groupby.SeriesGroupBy.count \
459427
pandas.core.groupby.SeriesGroupBy.cummax \
460428
pandas.core.groupby.SeriesGroupBy.cummin \
461429
pandas.core.groupby.SeriesGroupBy.cumprod \
462430
pandas.core.groupby.SeriesGroupBy.cumsum \
463431
pandas.core.groupby.SeriesGroupBy.diff \
464432
pandas.core.groupby.SeriesGroupBy.ffill \
465-
pandas.core.groupby.SeriesGroupBy.is_monotonic_increasing \
466-
pandas.core.groupby.SeriesGroupBy.is_monotonic_decreasing \
467433
pandas.core.groupby.SeriesGroupBy.max \
468434
pandas.core.groupby.SeriesGroupBy.median \
469435
pandas.core.groupby.SeriesGroupBy.min \
@@ -526,15 +492,10 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
526492
pandas.api.extensions.ExtensionArray.shape \
527493
pandas.api.extensions.ExtensionArray.tolist \
528494
pandas.DataFrame.columns \
529-
pandas.DataFrame.iterrows \
530-
pandas.DataFrame.pipe \
531495
pandas.DataFrame.backfill \
532-
pandas.DataFrame.bfill \
533496
pandas.DataFrame.ffill \
534497
pandas.DataFrame.pad \
535498
pandas.DataFrame.swapaxes \
536-
pandas.DataFrame.first_valid_index \
537-
pandas.DataFrame.last_valid_index \
538499
pandas.DataFrame.attrs \
539500
pandas.DataFrame.plot \
540501
pandas.DataFrame.to_gbq \

ci/deps/actions-310.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- numexpr>=2.8.0
4040
- odfpy>=1.4.1
4141
- qtpy>=2.2.0
42-
- openpyxl<3.1.1, >=3.0.10
42+
- openpyxl>=3.0.10
4343
- pandas-gbq>=0.17.5
4444
- psycopg2>=2.9.3
4545
- pyarrow>=7.0.0

ci/deps/actions-311.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- numexpr>=2.8.0
4040
- odfpy>=1.4.1
4141
- qtpy>=2.2.0
42-
- openpyxl<3.1.1, >=3.0.10
42+
- openpyxl>=3.0.10
4343
- pandas-gbq>=0.17.5
4444
- psycopg2>=2.9.3
4545
- pyarrow>=7.0.0

ci/deps/actions-39-downstream_compat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies:
4040
- numexpr>=2.8.0
4141
- odfpy>=1.4.1
4242
- qtpy>=2.2.0
43-
- openpyxl<3.1.1, >=3.0.10
43+
- openpyxl>=3.0.10
4444
- pandas-gbq>=0.17.5
4545
- psycopg2>=2.9.3
4646
- pyarrow>=7.0.0

ci/deps/actions-39.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- numexpr>=2.8.0
4040
- odfpy>=1.4.1
4141
- qtpy>=2.2.0
42-
- openpyxl<3.1.1, >=3.0.10
42+
- openpyxl>=3.0.10
4343
- pandas-gbq>=0.17.5
4444
- psycopg2>=2.9.3
4545
- pyarrow>=7.0.0

ci/deps/circle-39-arm64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- numexpr>=2.8.0
4040
- odfpy>=1.4.1
4141
- qtpy>=2.2.0
42-
- openpyxl<3.1.1, >=3.0.10
42+
- openpyxl>=3.0.10
4343
- pandas-gbq>=0.17.5
4444
- psycopg2>=2.9.3
4545
- pyarrow>=7.0.0

df_with_col.xlsx

5.63 KB
Binary file not shown.

df_without_col.xlsx

5.37 KB
Binary file not shown.

0 commit comments

Comments
 (0)