def head(self, n):
        """
        Return a DataAccessObject containing the first n rows

        :param n: number of rows
        :return: DataAccessObject
        """
        return DataAccessObject({k: self.dict[k][:n] for k in self.dict})
def head ( self , n ) : return DataAccessObject ( { k : self . dict [ k ] [ : n ] for k in self . dict } )
Return a DataAccessObject containing the first n rows

        :param n: number of rows
        :return: DataAccessObject