Skip to content

Commit

Permalink
Merge pull request #231 from nijanthanvijayakumar/issue-227-fix-anti-…
Browse files Browse the repository at this point in the history
…trim-docstring

Fix docstring for anti_trim function
  • Loading branch information
SemyonSinchenko authored Jul 8, 2024
2 parents 90bcfc4 + 9b787c9 commit eb62892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions quinn/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ def remove_all_whitespace(col: Column) -> Column:


def anti_trim(col: Column) -> Column:
"""Remove whitespace from the boundaries of ``col`` using the regexp_replace function.
"""Remove all inner whitespace but retain leading and trailing whitespace.
:param col: Column on which to perform the regexp_replace.
:type col: Column
:return: A new Column with all whitespace removed from the boundaries.
:return: A new Column with all inner whitespace removed but leading and trailing whitespace retained.
:rtype: Column
"""
return F.regexp_replace(col, "\\b\\s+\\b", "")
Expand Down

0 comments on commit eb62892

Please sign in to comment.