@@ -562,13 +562,13 @@ def from_avro(cls, filename):
562562 @classmethod
563563 def where (cls , condition , istrue , isfalse , dtype = None ):
564564 """
565- Selects elements from either istrue or isfalse depending on the value
565+ Selects elements from either istrue or isfalse depending on the value
566566 of the condition SArray.
567567
568568 Parameters
569569 ----------
570570 condition : SArray
571- An SArray of values such that for each value, if non-zero, yields a
571+ An SArray of values such that for each value, if non-zero, yields a
572572 value from istrue, otherwise from isfalse.
573573
574574 istrue : SArray or constant
@@ -585,8 +585,8 @@ def where(cls, condition, istrue, isfalse, dtype=None):
585585
586586 Examples
587587 --------
588-
589- Returns an SArray with the same values as g with values above 10
588+
589+ Returns an SArray with the same values as g with values above 10
590590 clipped to 10
591591
592592 >>> g = SArray([6,7,8,9,10,11,12,13])
@@ -595,7 +595,7 @@ def where(cls, condition, istrue, isfalse, dtype=None):
595595 Rows: 8
596596 [6, 7, 8, 9, 10, 10, 10, 10]
597597
598- Returns an SArray with the same values as g with values below 10
598+ Returns an SArray with the same values as g with values below 10
599599 clipped to 10
600600
601601 >>> SArray.where(g > 10, g, 10)
@@ -832,15 +832,6 @@ def contains(self, item):
832832 If the current SArray contains dictionaries, this produces a 1
833833 for each row if 'item' is a key in the dictionary.
834834
835- If the current SArray contains strings and item is a string. Produces a 1
836- for each row if 'item' is a substring of the row and 0 otherwise.
837-
838- If the current SArray contains list or arrays, this produces a 1
839- for each row if 'item' is an element of the list or array.
840-
841- If the current SArray contains dictionaries, this produces a 1
842- for each row if 'item' is a key in the dictionary.
843-
844835 Parameters
845836 ----------
846837 item : any type
@@ -849,7 +840,7 @@ def contains(self, item):
849840 Returns
850841 -------
851842 out : SArray
852- A binary SArray where a non-zero value denotes that the item
843+ A binary SArray where a non-zero value denotes that the item
853844 was found in the row. And 0 if it is not found.
854845
855846 Examples
@@ -869,7 +860,7 @@ def contains(self, item):
869860
870861 See Also
871862 --------
872- is_in
863+ is_in
873864 """
874865 return SArray (_proxy = self .__proxy__ .left_scalar_operator (item , 'in' ))
875866
@@ -881,7 +872,7 @@ def is_in(self, other):
881872 Conceptually equivalent to:
882873
883874 >>> sa.apply(lambda x: x in other)
884-
875+
885876 If the current SArray contains strings and other is a string. Produces a 1
886877 for each row if the row is a substring of 'other', and 0 otherwise.
887878
@@ -1991,7 +1982,7 @@ def hash(self, seed=0):
19911982 Parameters
19921983 ----------
19931984 seed : int
1994- Defaults to 0. Can be changed to different values to get
1985+ Defaults to 0. Can be changed to different values to get
19951986 different hash results.
19961987
19971988 Returns
0 commit comments