Skip to content

Commit

Permalink
docs(pandas): fix format for kwarg warning callout
Browse files Browse the repository at this point in the history
  • Loading branch information
deepyaman authored and cpcloud committed Jan 23, 2024
1 parent b06f929 commit 0f6d45d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/backends/pandas.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,12 @@ def zscore(series):
- The objects you receive as input arguments are either `pandas.Series` or
Python/NumPy scalars.

!!! warning "Keyword arguments must be given a default"
::: {.callout-warning}
## Keyword arguments must be given a default

Any keyword arguments must be given a default value or the function **will
not work**.
Any keyword arguments must be given a default value or the function **will
not work**.
:::

A common Python convention is to set the default value to `None` and
handle setting it to something not `None` in the body of the function.
Expand Down

0 comments on commit 0f6d45d

Please sign in to comment.