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

docs: Fix broken user-guide API links #18872

Merged
merged 1 commit into from
Sep 24, 2024
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
40 changes: 17 additions & 23 deletions docs/source/_build/API_REFERENCE_LINKS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ python:
DataFrame: https://docs.pola.rs/api/python/stable/reference/dataframe/index.html
LazyFrame: https://docs.pola.rs/api/python/stable/reference/lazyframe/index.html
Series: https://docs.pola.rs/api/python/stable/reference/series/index.html
Categorical: https://docs.pola.rs/api/python/stable/reference/api/polars.Categorical.html
GPUEngine: https://docs.pola.rs/api/python/stable/lazyframe/api/polars.lazyframe.engine_config.GPUEngine.html
Categorical: https://docs.pola.rs/api/python/stable/reference/api/polars.datatypes.Categorical.html
Config: https://docs.pola.rs/api/python/stable/reference/config.html
select: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.select.html
filter: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.filter.html
Expand All @@ -28,7 +27,7 @@ python:
head: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.head.html
tail: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.tail.html
describe: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.describe.html
col: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.col.html
col: https://docs.pola.rs/api/python/stable/reference/expressions/col.html
sort: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.sort.html
scan_csv: https://docs.pola.rs/api/python/stable/reference/api/polars.scan_csv.html
collect: https://docs.pola.rs/api/python/stable/reference/lazyframe/api/polars.LazyFrame.collect.html
Expand All @@ -40,9 +39,8 @@ python:
all: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.all.html
exclude: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.exclude.html
alias: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.alias.html
prefix: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.prefix.html
suffix: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.suffix.html
map_alias: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.map_alias.html
prefix: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.name.prefix.html
suffix: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.name.suffix.html
n_unique: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.n_unique.html
approx_n_unique: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.approx_n_unique.html
when: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.when.html
Expand Down Expand Up @@ -86,34 +84,31 @@ python:
lazy: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.lazy.html
explain: https://docs.pola.rs/api/python/stable/reference/lazyframe/api/polars.LazyFrame.explain.html
fetch: https://docs.pola.rs/api/python/stable/reference/lazyframe/api/polars.LazyFrame.fetch.html
SQLContext: https://docs.pola.rs/api/python/stable/reference/sql
SQLContext: https://docs.pola.rs/api/python/stable/reference/sql/python_api.html#polars.SQLContext
SQLregister:
name: register
link: https://docs.pola.rs/api/python/stable/reference/api/polars.SQLContext.register.html#polars.SQLContext.register
link: https://docs.pola.rs/api/python/stable/reference/sql/api/polars.SQLContext.register.html#polars.SQLContext.register
SQLregister_many:
name: register_many
link: https://docs.pola.rs/api/python/stable/reference/api/polars.SQLContext.register_many.html
SQLquery:
name: query
link: https://docs.pola.rs/api/python/stable/reference/api/polars.SQLContext.query.html
link: https://docs.pola.rs/api/python/stable/reference/sql/api/polars.SQLContext.register_many.html
SQLexecute:
name: execute
link: https://docs.pola.rs/api/python/stable/reference/api/polars.SQLContext.execute.html
link: https://docs.pola.rs/api/python/stable/reference/sql/api/polars.SQLContext.execute.html
join_asof: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.join_asof.html
concat: https://docs.pola.rs/api/python/stable/reference/api/polars.concat.html
pivot: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.pivot.html
unpivot: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.unpivot.html
is_between: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.is_between.html

date_range: https://docs.pola.rs/api/python/stable/reference/api/polars.date_range.html
date_range: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.date_range.html
upsample: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.upsample.html
group_by_dynamic: https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.group_by_dynamic.html
cast: https://docs.pola.rs/api/python/stable/reference/expressions/api/polars.Expr.cast.html
np.log:
name: log
link: https://numpy.org/doc/stable/reference/generated/numpy.log.html
feature_flags: ['numpy']
Array: https://docs.pola.rs/api/python/stable/reference/api/polars.Array.html
Array: https://docs.pola.rs/api/python/stable/reference/api/polars.datatypes.Array.html
Series.arr: https://docs.pola.rs/api/python/stable/reference/series/array.html
Series.dt.day: https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.dt.day.html

Expand Down Expand Up @@ -169,10 +164,9 @@ rust:
name: group_by_dynamic
link: https://docs.pola.rs/api/rust/dev/polars_lazy/frame/struct.LazyFrame.html#method.group_by_dynamic
feature_flags: [dynamic_group_by]
join: https://docs.pola.rs/api/rust/dev/polars_core/frame/hash_join/index.html
join: https://docs.pola.rs/api/rust/dev/polars/prelude/trait.DataFrameJoinOps.html#method.join
hstack: https://docs.pola.rs/api/rust/dev/polars_core/frame/struct.DataFrame.html#method.hstack
concat: https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/functions/fn.concat.html
SQLContext: https://docs.pola.rs/api/python/stable/reference/sql.html

explain: https://docs.rs/polars/latest/polars/prelude/struct.LazyFrame.html#method.explain

Expand All @@ -189,15 +183,15 @@ rust:

read_csv:
name: CsvReader
link: https://docs.pola.rs/api/rust/dev/polars_io/csv/struct.CsvReader.html
link: https://docs.pola.rs/api/rust/dev/polars/prelude/struct.CsvReader.html
feature_flags: ['csv']
scan_csv:
name: LazyCsvReader
link: https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyCsvReader.html
feature_flags: ['csv']
write_csv:
name: CsvWriter
link: https://docs.pola.rs/api/rust/dev/polars_io/csv/struct.CsvWriter.html
link: https://docs.pola.rs/api/rust/dev/polars/prelude/struct.CsvWriter.html
feature_flags: ['csv']
read_json:
name: JsonReader
Expand All @@ -221,19 +215,19 @@ rust:
feature_flags: ['json']
read_parquet:
name: ParquetReader
link: https://docs.pola.rs/api/rust/dev/polars_io/parquet/struct.ParquetReader.html
link: https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ParquetReader.html
feature_flags: ['parquet']
write_parquet:
name: ParquetWriter
link: https://docs.pola.rs/api/rust/dev/polars_io/parquet/struct.ParquetWriter.html
link: https://docs.pola.rs/api/rust/dev/polars/prelude/struct.ParquetWriter.html
feature_flags: ['parquet']
scan_parquet:
name: scan_parquet
link: https://docs.pola.rs/api/rust/dev/polars/prelude/struct.LazyFrame.html#method.scan_parquet
feature_flags: ['parquet']
read_ipc:
name: IpcReader
link: https://docs.pola.rs/api/rust/dev/polars_io/prelude/struct.IpcReader.html
link: https://docs.pola.rs/api/rust/dev/polars/prelude/struct.IpcReader.html
feature_flags: ['ipc']
scan_pyarrow_dataset: https://docs.pola.rs/api/python/stable/reference/api/polars.scan_pyarrow_dataset.html

Expand Down Expand Up @@ -277,7 +271,7 @@ rust:
feature_flags: ['concat_str']
concat_list:
name: concat_lst
link: https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/fn.concat_lst.html
link: https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/fn.concat_list.html
over: https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.over

alias: https://docs.pola.rs/api/rust/dev/polars_lazy/dsl/enum.Expr.html#method.alias
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user-guide/sql/select.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Polars provides a wide range of SQL functions, including:

For a full list of supported functions go the [API documentation](https://docs.rs/polars-sql/latest/src/polars_sql/keywords.rs.html). The example below demonstrates how to use a function in a query

{{code_block('user-guide/sql/select','functions',['SQLquery'])}}
{{code_block('user-guide/sql/select','functions',['SQLexecute'])}}

```python exec="on" result="text" session="user-guide/sql/select"
--8<-- "python/user-guide/sql/select.py:functions"
Expand Down