def get_series_by_name(self, name):
        """Returns the first :py:class:`.Series` of a given name, or ``None``.

        :param str name: The name to search by."""

        if not isinstance(name, str):
            raise TypeError(
             "Can only search series by str name, not '%s'" % str(name)
            )
        for series in self.all_series():
            if series.name() == name:
                return series
def get_series_by_name ( self , name ) : if not isinstance ( name , str ) : raise TypeError ( "Can only search series by str name, not '%s'" % str ( name ) ) for series in self . all_series ( ) : if series . name ( ) == name : return series
Returns the first :py:class:`.Series` of a given name, or ``None``.

        :param str name: The name to search by.