@@ -164,7 +164,7 @@ def _to_column_expr(col: ColumnOrName) -> Expression:
164164
165165
166166def regexp_replace (str : "ColumnOrName" , pattern : str , replacement : str ) -> Column :
167- r """Replace all substrings of the specified string value that match regexp with rep.
167+ """Replace all substrings of the specified string value that match regexp with rep.
168168
169169 .. versionadded:: 1.5.0
170170
@@ -1487,7 +1487,7 @@ def approx_count_distinct(col: "ColumnOrName", rsd: Optional[float] = None) -> C
14871487
14881488
14891489def approxCountDistinct (col : "ColumnOrName" , rsd : Optional [float ] = None ) -> Column :
1490- """.. versionadded:: 1.3.0
1490+ """.. versionadded:: 1.3.0.
14911491
14921492 .. versionchanged:: 3.4.0
14931493 Supports Spark Connect.
@@ -2059,7 +2059,7 @@ def cbrt(col: "ColumnOrName") -> Column:
20592059
20602060def char (col : "ColumnOrName" ) -> Column :
20612061 """Returns the ASCII character having the binary equivalent to `col`. If col is larger than 256 the
2062- result is equivalent to char(col % 256)
2062+ result is equivalent to char(col % 256).
20632063
20642064 .. versionadded:: 3.5.0
20652065
@@ -2373,7 +2373,7 @@ def rand(seed: Optional[int] = None) -> Column:
23732373
23742374
23752375def regexp (str : "ColumnOrName" , regexp : "ColumnOrName" ) -> Column :
2376- r """Returns true if `str` matches the Java regex `regexp`, or false otherwise.
2376+ """Returns true if `str` matches the Java regex `regexp`, or false otherwise.
23772377
23782378 .. versionadded:: 3.5.0
23792379
@@ -2425,7 +2425,7 @@ def regexp(str: "ColumnOrName", regexp: "ColumnOrName") -> Column:
24252425
24262426
24272427def regexp_count (str : "ColumnOrName" , regexp : "ColumnOrName" ) -> Column :
2428- r """Returns a count of the number of times that the Java regex pattern `regexp` is matched
2428+ """Returns a count of the number of times that the Java regex pattern `regexp` is matched
24292429 in the string `str`.
24302430
24312431 .. versionadded:: 3.5.0
@@ -2456,7 +2456,7 @@ def regexp_count(str: "ColumnOrName", regexp: "ColumnOrName") -> Column:
24562456
24572457
24582458def regexp_extract (str : "ColumnOrName" , pattern : str , idx : int ) -> Column :
2459- r """Extract a specific group matched by the Java regex `regexp`, from the specified string column.
2459+ """Extract a specific group matched by the Java regex `regexp`, from the specified string column.
24602460 If the regex did not match, or the specified group did not match, an empty string is returned.
24612461
24622462 .. versionadded:: 1.5.0
@@ -2496,7 +2496,7 @@ def regexp_extract(str: "ColumnOrName", pattern: str, idx: int) -> Column:
24962496
24972497
24982498def regexp_extract_all (str : "ColumnOrName" , regexp : "ColumnOrName" , idx : Optional [Union [int , Column ]] = None ) -> Column :
2499- r """Extract all strings in the `str` that match the Java regex `regexp`
2499+ """Extract all strings in the `str` that match the Java regex `regexp`
25002500 and corresponding to the regex group index.
25012501
25022502 .. versionadded:: 3.5.0
@@ -2535,7 +2535,7 @@ def regexp_extract_all(str: "ColumnOrName", regexp: "ColumnOrName", idx: Optiona
25352535
25362536
25372537def regexp_like (str : "ColumnOrName" , regexp : "ColumnOrName" ) -> Column :
2538- r """Returns true if `str` matches the Java regex `regexp`, or false otherwise.
2538+ """Returns true if `str` matches the Java regex `regexp`, or false otherwise.
25392539
25402540 .. versionadded:: 3.5.0
25412541
@@ -2587,7 +2587,7 @@ def regexp_like(str: "ColumnOrName", regexp: "ColumnOrName") -> Column:
25872587
25882588
25892589def regexp_substr (str : "ColumnOrName" , regexp : "ColumnOrName" ) -> Column :
2590- r """Returns the substring that matches the Java regex `regexp` within the string `str`.
2590+ """Returns the substring that matches the Java regex `regexp` within the string `str`.
25912591 If the regular expression is not found, the result is null.
25922592
25932593 .. versionadded:: 3.5.0
@@ -3996,7 +3996,7 @@ def month(col: "ColumnOrName") -> Column:
39963996
39973997def dayofweek (col : "ColumnOrName" ) -> Column :
39983998 """Extract the day of the week of a given date/timestamp as integer.
3999- Ranges from 1 for a Sunday through to 7 for a Saturday
3999+ Ranges from 1 for a Sunday through to 7 for a Saturday.
40004000
40014001 .. versionadded:: 2.3.0
40024002
@@ -4187,7 +4187,7 @@ def second(col: "ColumnOrName") -> Column:
41874187def weekofyear (col : "ColumnOrName" ) -> Column :
41884188 """Extract the week number of a given date as integer.
41894189 A week is considered to start on a Monday and week 1 is the first week with more than 3 days,
4190- as defined by ISO 8601
4190+ as defined by ISO 8601.
41914191
41924192 .. versionadded:: 1.5.0
41934193
@@ -4609,7 +4609,7 @@ def atan(col: "ColumnOrName") -> Column:
46094609
46104610
46114611def atan2 (col1 : Union ["ColumnOrName" , float ], col2 : Union ["ColumnOrName" , float ]) -> Column :
4612- """.. versionadded:: 1.4.0
4612+ """.. versionadded:: 1.4.0.
46134613
46144614 .. versionchanged:: 3.4.0
46154615 Supports Spark Connect.
@@ -5577,7 +5577,7 @@ def var_samp(col: "ColumnOrName") -> Column:
55775577
55785578
55795579def variance (col : "ColumnOrName" ) -> Column :
5580- """Aggregate function: alias for var_samp
5580+ """Aggregate function: alias for var_samp.
55815581
55825582 .. versionadded:: 1.6.0
55835583
@@ -6242,7 +6242,7 @@ def instr(str: "ColumnOrName", substr: str) -> Column:
62426242
62436243
62446244def expr (str : str ) -> Column :
6245- """Parses the expression string into the column that it represents
6245+ """Parses the expression string into the column that it represents.
62466246
62476247 .. versionadded:: 1.5.0
62486248
0 commit comments