mirror of
https://github.com/nushell/nushell.git
synced 2024-11-07 17:14:23 +01:00
ff27d6a18e
# Description Implementing pivot support The example below is a port of the [python API example](https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.pivot.html) <img width="1079" alt="Screenshot 2024-07-01 at 14 29 27" src="https://github.com/nushell/nushell/assets/56345/277eb7a2-233b-4070-9d24-c2183805c1b8"> # User-Facing Changes * Introduction of the `polars pivot` command
85 lines
2.2 KiB
TOML
85 lines
2.2 KiB
TOML
[package]
|
|
authors = ["The Nushell Project Developers"]
|
|
description = "Nushell dataframe plugin commands based on polars."
|
|
edition = "2021"
|
|
license = "MIT"
|
|
name = "nu_plugin_polars"
|
|
repository = "https://github.com/nushell/nushell/tree/main/crates/nu_plugin_polars"
|
|
version = "0.95.1"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[[bin]]
|
|
name = "nu_plugin_polars"
|
|
bench = false
|
|
|
|
[lib]
|
|
bench = false
|
|
|
|
[dependencies]
|
|
nu-protocol = { path = "../nu-protocol", version = "0.95.1" }
|
|
nu-plugin = { path = "../nu-plugin", version = "0.95.1" }
|
|
nu-path = { path = "../nu-path", version = "0.95.1" }
|
|
nu-utils = { path = "../nu-utils", version = "0.95.1" }
|
|
|
|
# Potential dependencies for extras
|
|
chrono = { workspace = true, features = ["std", "unstable-locales"], default-features = false }
|
|
chrono-tz = "0.9"
|
|
fancy-regex = { workspace = true }
|
|
indexmap = { version = "2.2" }
|
|
mimalloc = { version = "0.1.42" }
|
|
num = {version = "0.4"}
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
sqlparser = { version = "0.47"}
|
|
polars-io = { version = "0.41", features = ["avro"]}
|
|
polars-arrow = { version = "0.41"}
|
|
polars-ops = { version = "0.41", features = ["pivot"]}
|
|
polars-plan = { version = "0.41", features = ["regex"]}
|
|
polars-utils = { version = "0.41"}
|
|
typetag = "0.2"
|
|
env_logger = "0.11.3"
|
|
log.workspace = true
|
|
uuid = { version = "1.9", features = ["v4", "serde"] }
|
|
|
|
[dependencies.polars]
|
|
features = [
|
|
"arg_where",
|
|
"checked_arithmetic",
|
|
"concat_str",
|
|
"cross_join",
|
|
"csv",
|
|
"cum_agg",
|
|
"default",
|
|
"dtype-categorical",
|
|
"dtype-datetime",
|
|
"dtype-struct",
|
|
"dtype-i8",
|
|
"dtype-i16",
|
|
"dtype-u8",
|
|
"dtype-u16",
|
|
"dynamic_group_by",
|
|
"ipc",
|
|
"is_in",
|
|
"json",
|
|
"lazy",
|
|
"object",
|
|
"parquet",
|
|
"random",
|
|
"rolling_window",
|
|
"rows",
|
|
"serde",
|
|
"serde-lazy",
|
|
"strings",
|
|
"to_dummies",
|
|
]
|
|
optional = false
|
|
version = "0.41"
|
|
|
|
[dev-dependencies]
|
|
nu-cmd-lang = { path = "../nu-cmd-lang", version = "0.95.1" }
|
|
nu-engine = { path = "../nu-engine", version = "0.95.1" }
|
|
nu-parser = { path = "../nu-parser", version = "0.95.1" }
|
|
nu-command = { path = "../nu-command", version = "0.95.1" }
|
|
nu-plugin-test-support = { path = "../nu-plugin-test-support", version = "0.95.1" }
|
|
tempfile.workspace = true
|