Skip to content

Commit

Permalink
correct docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
natmokval committed May 21, 2024
1 parent 49ac3cb commit a2dfd71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions narwhals/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,10 +441,10 @@ def std(self, *, ddof: int = 1) -> Any:

def is_in(self, other: Any) -> Self:
"""
Check if elements of this Series are in the other Series.
Check if elements of this sequence are present in the other Series.
Arguments:
other: Series or sequence of primitive type.
other: Sequence of primitive type.
Examples:
>>> import pandas as pd
Expand All @@ -457,7 +457,7 @@ def is_in(self, other: Any) -> Self:
>>> def func(s_any):
... s = nw.from_native(s_any, series_only=True)
... s = s.is_in(pl.Series([3, 2, 8]))
... s = s.is_in([3, 2, 8])
... return nw.to_native(s)
We can then pass either pandas or Polars to `func`:
Expand Down

0 comments on commit a2dfd71

Please sign in to comment.