@classmethod
    def get_row_by_pk(self, ar, pk):
        try:
            return ar.data_iterator[int(pk)-1]
        except (ValueError, IndexError):
            return None
`dbtables.Table` overrides this.
dataset/ETHPy150Open lsaffre/lino/lino/core/tables.py/AbstractTable.get_row_by_pk