def all(self):
        """
        Returns entire table as a DataFrame. This is executing:
            SELECT
                *
            FROM
                <name_of_the_table>

        Examples
        --------
        >>> from db import DemoDB
        >>> db = DemoDB()
        >>> len(db.tables.Track.all())
        3503
        >>> df = db.tables.Track.all()
        """

        q = self._query_templates['table']['all'].format(schema=self.schema,
                                                         table=self.name)
        return pd.read_sql(q, self._con)
def all ( self ) : q = self . _query_templates [ 'table' ] [ 'all' ] . format ( schema = self . schema , table = self . name ) return pd . read_sql ( q , self . _con )
Returns entire table as a DataFrame. This is executing:
            SELECT
                *
            FROM
                <name_of_the_table>

        Examples
        --------
        >>> from db import DemoDB
        >>> db = DemoDB()
        >>> len(db.tables.Track.all())
        3503
        >>> df = db.tables.Track.all()