From 15803ce7e9db8238159a0293137ca3469339a809 Mon Sep 17 00:00:00 2001 From: Robin Date: Sat, 1 Jun 2024 11:47:42 +0200 Subject: [PATCH] docs(python): Overview of available SQL functions (#16268) Co-authored-by: alexander-beedie --- py-polars/docs/source/reference/index.rst | 2 +- .../docs/source/reference/sql/clauses.rst | 311 ++++++++++ .../reference/sql/functions/aggregate.rst | 284 +++++++++ .../source/reference/sql/functions/array.rst | 353 +++++++++++ .../reference/sql/functions/conditional.rst | 207 +++++++ .../source/reference/sql/functions/index.rst | 87 +++ .../source/reference/sql/functions/math.rst | 448 ++++++++++++++ .../source/reference/sql/functions/string.rst | 580 ++++++++++++++++++ .../reference/sql/functions/temporal.rst | 158 +++++ .../reference/sql/functions/trigonometry.rst | 580 ++++++++++++++++++ py-polars/docs/source/reference/sql/index.rst | 72 +++ .../reference/{sql.rst => sql/python_api.rst} | 15 +- .../source/reference/sql/set_operations.rst | 121 ++++ .../source/reference/sql/table_operations.rst | 98 +++ 14 files changed, 3309 insertions(+), 7 deletions(-) create mode 100644 py-polars/docs/source/reference/sql/clauses.rst create mode 100644 py-polars/docs/source/reference/sql/functions/aggregate.rst create mode 100644 py-polars/docs/source/reference/sql/functions/array.rst create mode 100644 py-polars/docs/source/reference/sql/functions/conditional.rst create mode 100644 py-polars/docs/source/reference/sql/functions/index.rst create mode 100644 py-polars/docs/source/reference/sql/functions/math.rst create mode 100644 py-polars/docs/source/reference/sql/functions/string.rst create mode 100644 py-polars/docs/source/reference/sql/functions/temporal.rst create mode 100644 py-polars/docs/source/reference/sql/functions/trigonometry.rst create mode 100644 py-polars/docs/source/reference/sql/index.rst rename py-polars/docs/source/reference/{sql.rst => sql/python_api.rst} (81%) create mode 100644 py-polars/docs/source/reference/sql/set_operations.rst create mode 100644 py-polars/docs/source/reference/sql/table_operations.rst diff --git a/py-polars/docs/source/reference/index.rst b/py-polars/docs/source/reference/index.rst index ebd0eaf005e3..c662f96a0f94 100644 --- a/py-polars/docs/source/reference/index.rst +++ b/py-polars/docs/source/reference/index.rst @@ -91,7 +91,7 @@ methods. All classes and functions exposed in the ``polars.*`` namespace are pub .. toctree:: :maxdepth: 2 - sql + sql/index .. grid-item-card:: diff --git a/py-polars/docs/source/reference/sql/clauses.rst b/py-polars/docs/source/reference/sql/clauses.rst new file mode 100644 index 000000000000..0625f2aba6a4 --- /dev/null +++ b/py-polars/docs/source/reference/sql/clauses.rst @@ -0,0 +1,311 @@ +SQL Clauses +=========== + +.. list-table:: + :header-rows: 1 + :widths: 20 60 + + * - Function + - Description + * - :ref:`SELECT