Skip to content

Commit c29167a

Browse files
committed
Merge branch 'release' into dev
2 parents c04f7a8 + 446ff83 commit c29167a

4 files changed

Lines changed: 32 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "peroxide"
3-
version = "0.40.1"
3+
version = "0.40.2"
44
authors = ["axect <axect@outlook.kr>"]
55
edition = "2018"
66
description = "Rust comprehensive scientific computation library contains linear algebra, numerical analysis, statistics and machine learning tools with farmiliar syntax"

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ Peroxide can do many things.
252252
- Read & Write `csv` files (`csv` feature)
253253
- Read & Write `netcdf` files (`nc` feature)
254254
- Read & Write `parquet` files (`parquet` feature)
255+
- Shape & info: `nrow`, `ncol`, `shape`, `dtypes`, `is_empty`, `contains`
256+
- Row operations: `head`, `tail`, `slice`
257+
- Column operations: `select`, `rename`, `column_names`, `select_dtypes`
258+
- Series statistics: `sum`, `mean`, `var`, `sd`, `min`, `max`
259+
- DataFrame statistics: `describe`, `sum`, `mean`
255260

256261
### 6. Compatible with Mathematics
257262

RELEASES.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# Release 0.40.2 (2026-02-06)
2+
3+
## New DataFrame & Series Methods
4+
5+
- Add `Series` helper methods
6+
- `select_indices(&self, indices: &[usize]) -> Series` : Select elements by indices
7+
- `to_f64_vec(&self) -> anyhow::Result<Vec<f64>>` : Convert numeric Series to `Vec<f64>`
8+
- Add `DataFrame` shape & info methods
9+
- `nrow`, `ncol`, `shape`, `dtypes`, `is_empty`, `contains`
10+
- Add `DataFrame` row operations
11+
- `head(n)`, `tail(n)`, `slice(offset, length)`
12+
- Add `DataFrame` column operations
13+
- `select(columns)`, `rename(old, new)`, `column_names()`, `select_dtypes(dtypes)`
14+
- Add `Series` statistics
15+
- `sum`, `mean`, `var`, `sd` : Numeric types only, returns `f64`
16+
- `min`, `max` : All ordered types, returns `Scalar` preserving original type
17+
- Add `DataFrame` statistics
18+
- `describe()` : count / mean / sd / min / max for numeric columns
19+
- `sum()`, `mean()` : Column-wise aggregation as single-row DataFrame
20+
- Refactor `extract_series_by_indices` into `Series::select_indices`
21+
122
# Release 0.40.1 (2026-02-06)
223

324
## Bug Fixes & Improvements

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@
7171
//! - [Plot with `matplotlib`](util/plot/index.html)
7272
//! - [DataFrame](structure/dataframe/index.html)
7373
//! - Read & Write with `parquet` or `netcdf` or `csv` format
74+
//! - Shape & info: `nrow`, `ncol`, `shape`, `dtypes`, `is_empty`, `contains`
75+
//! - Row operations: `head`, `tail`, `slice`
76+
//! - Column operations: `select`, `rename`, `column_names`, `select_dtypes`
77+
//! - Statistics: `describe`, `sum`, `mean`
78+
//! - Series statistics: `sum`, `mean`, `var`, `sd`, `min`, `max`
7479
//! - Macros
7580
//! - [R macros](macros/r_macro/index.html)
7681
//! - [Matlab macros](macros/matlab_macro/index.html)

0 commit comments

Comments
 (0)