Skip to content

Commit 5bc6216

Browse files
author
samuel.oranyeli
committed
fix docstring rendering for polars
1 parent d16ad9c commit 5bc6216

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

janitor/polars/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ def clean_names(
244244
enforce_string: Whether or not to cast the expression to a string type.
245245
truncate_limit: Truncates formatted labels in the expression to
246246
the specified length. Default None does not truncate.
247-
248247
Returns:
249248
A polars Expression.
250249
"""

janitor/polars/functions.py

-3
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,11 @@ def _clean_column_names(
118118
case_type: str = "lower",
119119
remove_special: bool = False,
120120
strip_accents: bool = False,
121-
enforce_string: bool = False,
122121
truncate_limit: int = None,
123122
) -> str:
124123
"""
125124
Function to clean the column names of a polars DataFrame.
126125
"""
127-
if enforce_string:
128-
obj = str(obj)
129126
obj = _change_case(obj=obj, case_type=case_type)
130127
obj = _normalize_1(obj=obj)
131128
if remove_special:

mkdocs/api/polars.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PolarsExpr
1+
# Polars
22

33
::: janitor.polars
44
options:

0 commit comments

Comments
 (0)