diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 60cf362..feb737a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,7 @@ repos: - id: trailing-whitespace - id: check-added-large-files - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.16.4 + rev: v0.16.5 hooks: - id: ruff - id: ruff-format diff --git a/README.md b/README.md index b4ffcb0..4a4c6b3 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ pip install pyprql[polars] import pandas as pd import pyprql.pandas_accessor -df = (...) +df = ... results_df = df.prql.query("select {age, name, occupation} | filter age > 21") ``` @@ -49,7 +49,7 @@ results_df = df.prql.query("select {age, name, occupation} | filter age > 21") import polars as pl import pyprql.polars_namespace -df = (...) +df = ... results_df = df.prql.query("select {age, name, occupation} | filter age > 21") ``` @@ -75,6 +75,7 @@ This library exposes `prqlc.compile`, so we can simply generate SQL: ```python import pyprql + pyprql.compile("from artists | select track") print(pyprql.compile("from artists | select track")) ```