text_extensions_for_pandas/array/token_span.py
def make_array(cls, o) -> "TokenSpanArray":
        """
        Make a :class:`TokenSpanArray` object out of any of several types of input.

        :param o: a :class:`TokenSpanArray` object represented as a :class:`pd.Series`,
            a list of :class:`TokenSpan` objects, or an actual :class:`TokenSpanArray`
            object.

        :return: :class:`TokenSpanArray` version of ``o``, which may be a pointer to ``o`` or
            one of its fields.
        """
        if isinstance(o, TokenSpanArray):
            return o
        elif isinstance(o, pd.Series):
            return cls.make_array(o.values)
        elif isinstance(o, Sequence):
            return cls._from_sequence(o)
        elif isinstance(o, Iterable):
            return cls._from_sequence([e for e in o])

        Make a :class:`TokenSpanArray` object out of any of several types of input.

        :param o: a :class:`TokenSpanArray` object represented as a :class:`pd.Series`,
            a list of :class:`TokenSpan` objects, or an actual :class:`TokenSpanArray`
            object.

        :return: :class:`TokenSpanArray` version of ``o``, which may be a pointer to ``o`` or
            one of its fields.
        
Make a :class:`TokenSpanArray` object out of any of several types of input.
Make a : class : ` TokenSpanArray ` object out of any of several types of input .
def make_array(cls, o) -> "TokenSpanArray":
        if isinstance(o, TokenSpanArray):
            return o
        elif isinstance(o, pd.Series):
            return cls.make_array(o.values)
        elif isinstance(o, Sequence):
            return cls._from_sequence(o)
        elif isinstance(o, Iterable):
            return cls._from_sequence([e for e in o])
def make_array ( cls , o ) -> "TokenSpanArray" : if isinstance ( o , TokenSpanArray ) : return o elif isinstance ( o , pd . Series ) : return cls . make_array ( o . values ) elif isinstance ( o , Sequence ) : return cls . _from_sequence ( o ) elif isinstance ( o , Iterable ) : return cls . _from_sequence ( [ e for e in o ] )
Make a :class:`TokenSpanArray` object out of any of several types of input.
Make a : class : ` TokenSpanArray ` object out of any of several types of input .
"""
        Make a :class:`TokenSpanArray` object out of any of several types of input.

        :param o: a :class:`TokenSpanArray` object represented as a :class:`pd.Series`,
            a list of :class:`TokenSpan` objects, or an actual :class:`TokenSpanArray`
            object.

        :return: :class:`TokenSpanArray` version of ``o``, which may be a pointer to ``o`` or
            one of its fields.
        """
:class:`TokenSpanArray` version of ``o``, which may be a pointer to ``o`` or
one of its fields.
: class : ` TokenSpanArray ` version of ` ` o ` ` which may be a pointer to ` ` o ` ` or one of its fields .
cls
o
a :class:`TokenSpanArray` object represented as a :class:`pd.Series`,
a list of :class:`TokenSpan` objects, or an actual :class:`TokenSpanArray`
object.
a : class : ` TokenSpanArray ` object represented as a : class : ` pd . Series ` a list of : class : ` TokenSpan ` objects or an actual : class : ` TokenSpanArray ` object .