Skip to content

Commit e2cb4ec

Browse files
committed
deps: Bump Polars to latest upstream and adapt pivot API
Update Polars dependency rev to c032b90 in Cargo.toml and refresh README badge to match the new commit. Adapt src/cmd/pivotp.rs to the updated Polars pivot API by importing PivotColumnNaming and passing a default column_naming to the pivot call.
1 parent e5fb21b commit e2cb4ec

File tree

5 files changed

+30
-28
lines changed

5 files changed

+30
-28
lines changed

Cargo.lock

Lines changed: 23 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,9 @@ sled = { git = "https://github.com/dathere/sled", branch = "v0.34.7-bumped-parki
375375
# (e.g. py-1.19.0:52ea381 to indicate that we are Python Polars 1.19.0,
376376
# and the commit hash 52ea381)
377377
# ================================
378-
# QSV_POLARS_REV=3a72d40
378+
# QSV_POLARS_REV=c032b90
379379
# polars = { git = "https://github.com/pola-rs/polars", tag = "py-1.38.1", optional = true }
380-
polars = { git = "https://github.com/pola-rs/polars", rev = "3a72d40", optional = true }
380+
polars = { git = "https://github.com/pola-rs/polars", rev = "c032b90", optional = true }
381381

382382
[features]
383383
default = ["mimalloc"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
🧠: expensive operations are memoized with available inter-session Redis/Disk caching for fetch commands.
104104
🗄️: [Extended input support](#extended-input-support).
105105
🗃️: [Limited Extended input support](#limited-extended-input-support).
106-
🐻‍❄️: command powered/accelerated by [![polars 0.53.0:3a72d40](https://img.shields.io/badge/polars-0.53.0:3a72d40-blue?logo=polars
106+
🐻‍❄️: command powered/accelerated by [![polars 0.53.0:c032b90](https://img.shields.io/badge/polars-0.53.0:c032b90-blue?logo=polars
107107
)](https://github.com/pola-rs/polars/releases/tag/rs-0.53.0) vectorized query engine.
108108
🤖: command uses Natural Language Processing or Generative AI.
109109
🏎️: multithreaded and/or faster when an index (📇) is available.

docs/help/TableOfContents.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
🧠: expensive operations are memoized with available inter-session Redis/Disk caching for fetch commands.
8585
🗄️: [Extended input support](../../README.md#extended-input-support).
8686
🗃️: [Limited Extended input support](../../README.md#limited-extended-input-support).
87-
🐻‍❄️: command powered/accelerated by [![polars 0.53.0:3a72d40](https://img.shields.io/badge/polars-0.53.0:3a72d40-blue?logo=polars
87+
🐻‍❄️: command powered/accelerated by [![polars 0.53.0:c032b90](https://img.shields.io/badge/polars-0.53.0:c032b90-blue?logo=polars
8888
)](https://github.com/pola-rs/polars/releases/tag/rs-0.53.0) vectorized query engine.
8989
🤖: command uses Natural Language Processing or Generative AI.
9090
🏎️: multithreaded and/or faster when an index (📇) is available.

src/cmd/pivotp.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ use std::{
7676
use csv::ByteRecord;
7777
use foldhash::HashSet;
7878
use indicatif::HumanCount;
79-
use polars::prelude::*;
79+
use polars::{frame::PivotColumnNaming, prelude::*};
8080
use serde::Deserialize;
8181

8282
use crate::{
@@ -703,6 +703,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
703703
let on_selector = cols(on_cols.iter().map(std::string::String::as_str));
704704
let index_selector = cols(actual_index_cols.iter().map(std::string::String::as_str));
705705
let values_selector = cols(actual_value_cols.iter().map(std::string::String::as_str));
706+
let column_naming = PivotColumnNaming::default(); // Use default column naming convention
706707

707708
let mut pivot_result = lf
708709
.pivot(
@@ -713,6 +714,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> {
713714
agg,
714715
args.flag_maintain_order,
715716
separator,
717+
column_naming,
716718
)
717719
.collect()?;
718720

0 commit comments

Comments
 (0)