def one(self):
        rows = self.rows
        if len(rows) > 1:
            raise NotOneError("More than one result")
        else:
            return rows[0]
Return just one result directly.
dataset/ETHPy150Open project-fondue/python-yql/yql/__init__.py/YQLObj.one