Skip to content

Commit 7532cc3

Browse files
author
Khor Chean Wei
authored
Merge branch 'main' into numeric_to_df_cum
2 parents f7f3f49 + b1525c4 commit 7532cc3

Some content is hidden

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

54 files changed

+866
-707
lines changed

asv_bench/asv.conf.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
// pip (with all the conda available packages installed first,
4242
// followed by the pip installed packages).
4343
"matrix": {
44+
"pip+build": [],
4445
"Cython": ["3.0"],
4546
"matplotlib": [],
4647
"sqlalchemy": [],

ci/deps/actions-310.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ dependencies:
2424

2525
# optional dependencies
2626
- beautifulsoup4>=4.11.2
27+
# https://github.com/conda-forge/pytables-feedstock/issues/97
28+
- c-blosc2=2.13.2
2729
- blosc>=1.21.3
2830
- bottleneck>=1.3.6
2931
- fastparquet>=2023.10.0

ci/deps/actions-311-downstream_compat.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ dependencies:
2626

2727
# optional dependencies
2828
- beautifulsoup4>=4.11.2
29+
# https://github.com/conda-forge/pytables-feedstock/issues/97
30+
- c-blosc2=2.13.2
2931
- blosc>=1.21.3
3032
- bottleneck>=1.3.6
3133
- fastparquet>=2023.10.0

ci/deps/actions-311.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ dependencies:
2424

2525
# optional dependencies
2626
- beautifulsoup4>=4.11.2
27+
# https://github.com/conda-forge/pytables-feedstock/issues/97
28+
- c-blosc2=2.13.2
2729
- blosc>=1.21.3
2830
- bottleneck>=1.3.6
2931
- fastparquet>=2023.10.0

ci/deps/actions-312.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ dependencies:
2424

2525
# optional dependencies
2626
- beautifulsoup4>=4.11.2
27+
# https://github.com/conda-forge/pytables-feedstock/issues/97
28+
- c-blosc2=2.13.2
2729
- blosc>=1.21.3
2830
- bottleneck>=1.3.6
2931
- fastparquet>=2023.10.0

ci/deps/actions-39-minimum_versions.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ dependencies:
2727

2828
# optional dependencies
2929
- beautifulsoup4=4.11.2
30+
# https://github.com/conda-forge/pytables-feedstock/issues/97
31+
- c-blosc2=2.13.2
3032
- blosc=1.21.3
3133
- bottleneck=1.3.6
3234
- fastparquet=2023.10.0

ci/deps/actions-39.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ dependencies:
2424

2525
# optional dependencies
2626
- beautifulsoup4>=4.11.2
27+
# https://github.com/conda-forge/pytables-feedstock/issues/97
28+
- c-blosc2=2.13.2
2729
- blosc>=1.21.3
2830
- bottleneck>=1.3.6
2931
- fastparquet>=2023.10.0

ci/deps/circle-310-arm64.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ dependencies:
2525

2626
# optional dependencies
2727
- beautifulsoup4>=4.11.2
28+
# https://github.com/conda-forge/pytables-feedstock/issues/97
29+
- c-blosc2=2.13.2
2830
- blosc>=1.21.3
2931
- bottleneck>=1.3.6
3032
- fastparquet>=2023.10.0

doc/source/user_guide/basics.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -476,15 +476,15 @@ For example:
476476
.. ipython:: python
477477
478478
df
479-
df.mean(0)
480-
df.mean(1)
479+
df.mean(axis=0)
480+
df.mean(axis=1)
481481
482482
All such methods have a ``skipna`` option signaling whether to exclude missing
483483
data (``True`` by default):
484484

485485
.. ipython:: python
486486
487-
df.sum(0, skipna=False)
487+
df.sum(axis=0, skipna=False)
488488
df.sum(axis=1, skipna=True)
489489
490490
Combined with the broadcasting / arithmetic behavior, one can describe various
@@ -495,8 +495,8 @@ standard deviation of 1), very concisely:
495495
496496
ts_stand = (df - df.mean()) / df.std()
497497
ts_stand.std()
498-
xs_stand = df.sub(df.mean(1), axis=0).div(df.std(1), axis=0)
499-
xs_stand.std(1)
498+
xs_stand = df.sub(df.mean(axis=1), axis=0).div(df.std(axis=1), axis=0)
499+
xs_stand.std(axis=1)
500500
501501
Note that methods like :meth:`~DataFrame.cumsum` and :meth:`~DataFrame.cumprod`
502502
preserve the location of ``NaN`` values. This is somewhat different from

doc/source/user_guide/indexing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -952,7 +952,7 @@ To select a row where each column meets its own criterion:
952952
953953
values = {'ids': ['a', 'b'], 'ids2': ['a', 'c'], 'vals': [1, 3]}
954954
955-
row_mask = df.isin(values).all(1)
955+
row_mask = df.isin(values).all(axis=1)
956956
957957
df[row_mask]
958958

0 commit comments

Comments
 (0)