def value_at(self, x):
x = Quantity(x, self.xindex.unit).value<EOL>try:<EOL><INDENT>idx = (self.xindex.value == x).nonzero()[<NUM_LIT:0>][<NUM_LIT:0>]<EOL><DEDENT>except IndexError as e:<EOL><INDENT>e.args = ("<STR_LIT>" % x,)<EOL>raise<EOL><DEDENT>return self[idx]<EOL>
Return the value of this `Series` at the given `xindex` value

        Parameters
        ----------
        x : `float`, `~astropy.units.Quantity`
            the `xindex` value at which to search

        Returns
        -------
        y : `~astropy.units.Quantity`
            the value of this Series at the given `xindex` value