pola-rs / polars

Dataframes powered by a multithreaded, vectorized query engine, written in Rust
https://docs.pola.rs
Other
30.57k stars 1.98k forks source link

Remove duplicate sentence in `Series.bottom_k` docstring #19946

Closed mhogervo closed 4 days ago

mhogervo commented 4 days ago

Description

There's a repeated sentence in the pl.Series.bottom_k docstring, namely "this has time complexity". In context:

[...] if you wish the output to be sorted. This has time complexity:

This has time complexity:

We should remove the first instance and keep the second. This bring the docstring in line with its Series.top_k counterpart.

Link

https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.bottom_k.html