Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/import api more feats #7

Merged
merged 9 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
test.ipynb
.ipynb_checkpoints
tests/*.ipynb

/target

Expand Down
12 changes: 12 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.5
hooks:
# Run the linter.
- id: ruff
types_or: [ python, pyi]
args: [ --fix ]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi]
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "polars_ds"
version = "0.1.0"
version = "0.1.1"
edition = "2021"

[lib]
Expand All @@ -12,13 +12,13 @@ crate-type = ["cdylib"]
[dependencies]
pyo3 = {version = "0.20", features = ["extension-module"]}
pyo3-polars = {version = "0.8", features = ["derive"]}
polars = {version = "0.34", features = ["performant", "nightly", "chunked_ids", "lazy", "dtype-struct", "ndarray", "log"]}
polars = {version = "0.34", features = ["performant", "chunked_ids", "lazy", "dtype-struct", "ndarray", "log", "nightly"]}
num = "0.4.1"
faer = {version = "0.14.1", features = ["ndarray", "nightly"]}
ndarray = "0.15.6"
hashbrown = "0.14.2"
hashbrown = {version = "0.14.2", features=["nightly"]}
rustfft = "6.1.0"

[target.'cfg(target_os = "linux")'.dependencies]
jemallocator = { version = "0.5", features = ["disable_initial_exec_tls"] }

Expand All @@ -27,4 +27,4 @@ mimalloc = { version = "0.1", default-features = false }

[profile.release]
codegen-units = 1
lto = "fat"
# lto = "fat"
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ install: venv
dev-release: venv
unset CONDA_PREFIX && \
source .venv/bin/activate && maturin develop --release -m Cargo.toml
.venv/bin/pip install -e .

# .venv/bin/pip install -e .

pre-commit: venv
cargo fmt --all --manifest-path Cargo.toml && cargo clippy --all-features --manifest-path Cargo.toml
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ df.group_by("dummy").agg(
)
```

To avoid `Chunked array is not contiguous` error, try to rechunk your dataframe.

The package right now contains two extensions:

## Numeric Extension
Expand Down
Loading