From b50c79a81fea75d1e56f711a084e49340b322c55 Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Sun, 6 Aug 2023 21:37:30 +0200 Subject: [PATCH] Fix doctest --- py-polars/polars/series/categorical.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-polars/polars/series/categorical.py b/py-polars/polars/series/categorical.py index d44dfa7f2024b..40a271625adfe 100644 --- a/py-polars/polars/series/categorical.py +++ b/py-polars/polars/series/categorical.py @@ -88,10 +88,10 @@ def uses_lexical_sort(self) -> bool: Examples -------- >>> s = pl.Series(["b", "a", "b"]).cast(pl.Categorical) - >>> s.uses_lexical_sort() + >>> s.cat.uses_lexical_sort() False - >>> s = s.set_ordering("lexical") - >>> s.uses_lexical_sort() + >>> s = s.cat.set_ordering("lexical") + >>> s.cat.uses_lexical_sort() True """