File tree 3 files changed +1
-5
lines changed
3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,6 @@ def clean_names(
244
244
enforce_string: Whether or not to cast the expression to a string type.
245
245
truncate_limit: Truncates formatted labels in the expression to
246
246
the specified length. Default None does not truncate.
247
-
248
247
Returns:
249
248
A polars Expression.
250
249
"""
Original file line number Diff line number Diff line change @@ -118,14 +118,11 @@ def _clean_column_names(
118
118
case_type : str = "lower" ,
119
119
remove_special : bool = False ,
120
120
strip_accents : bool = False ,
121
- enforce_string : bool = False ,
122
121
truncate_limit : int = None ,
123
122
) -> str :
124
123
"""
125
124
Function to clean the column names of a polars DataFrame.
126
125
"""
127
- if enforce_string :
128
- obj = str (obj )
129
126
obj = _change_case (obj = obj , case_type = case_type )
130
127
obj = _normalize_1 (obj = obj )
131
128
if remove_special :
Original file line number Diff line number Diff line change 1
- # PolarsExpr
1
+ # Polars
2
2
3
3
::: janitor.polars
4
4
options:
You can’t perform that action at this time.
0 commit comments