Skip to content

Commit

Permalink
Fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Aug 6, 2023
1 parent 6ca1490 commit b50c79a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py-polars/polars/series/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down

0 comments on commit b50c79a

Please sign in to comment.