Skip to content

Commit 9b28991

Browse files
committed
[DOC] mkdocs updates to idempotent() in utils
1 parent 3a519af commit 9b28991

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

janitor/utils.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,21 +235,21 @@ def import_message(
235235

236236
def idempotent(func: Callable, df: pd.DataFrame, *args, **kwargs):
237237
"""
238-
Raises error if a function operating on a `DataFrame` is not idempotent,
239-
that is, `func(func(df)) = func(df)` is not true for all `df`.
238+
Raises an error if a function operating on a DataFrame is not idempotent.
239+
That is, `func(func(df)) = func(df)` is not `True` for all `df`.
240240
241-
:param func: A python method.
241+
:param func: A Python method.
242242
:param df: A pandas `DataFrame`.
243243
:param args: Positional arguments supplied to the method.
244244
:param kwargs: Keyword arguments supplied to the method.
245245
:raises ValueError: If `func` is found to not be idempotent for the given
246-
`DataFrame` `df`.
246+
DataFrame (`df`).
247247
"""
248248
if not func(df, *args, **kwargs) == func(
249249
func(df, *args, **kwargs), *args, **kwargs
250250
):
251251
raise ValueError(
252-
"Supplied function is not idempotent for the given " "DataFrame."
252+
"Supplied function is not idempotent for the given DataFrame."
253253
)
254254

255255

0 commit comments

Comments
 (0)