Skip to content

Commit

Permalink
Merge branch 'MrPowers:main' into issue-49-remove-exists-forall
Browse files Browse the repository at this point in the history
  • Loading branch information
nijanthanvijayakumar authored Jul 8, 2024
2 parents 9e32cfa + eb62892 commit ebfe482
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 @@ -59,11 +59,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 ebfe482

Please sign in to comment.