From 49af4c7c8452931fd7adec1198be7af1e5634b15 Mon Sep 17 00:00:00 2001 From: MarcoGorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Mon, 22 Jan 2024 10:56:26 +0000 Subject: [PATCH] add readme note --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index c02c2c8..5ccad90 100644 --- a/README.md +++ b/README.md @@ -71,6 +71,9 @@ shape: (3, 2) │ 2024-01-04 ┆ 2024-01-11 │ └────────────┴──────────────┘ ``` +Note that `polars-xdt` also registers a `xdt` namespace in the `Expression` class, so you +could equivalently write the above using `pl.col('date').xdt.offset_by('5bd')` (but note +that then type-checking would not recognise the `xdt` attribute). Read the [documentation](https://marcogorelli.github.io/polars-xdt-docs/) for more examples!