def get_series_by_name(self, name):
if not isinstance(name, str):<EOL><INDENT>raise TypeError(<EOL>"<STR_LIT>" % str(name)<EOL>)<EOL><DEDENT>for series in self.all_series():<EOL><INDENT>if series.name() == name:<EOL><INDENT>return series<EOL><DEDENT><DEDENT>
Returns the first :py:class:`.Series` of a given name, or ``None``.

        :param str name: The name to search by.