def read_sql_table(table_name, con, schema=None, index_col=None, coerce_float=True, parse_dates=None, columns=None, chunksize=None):
 con = _engine_builder(con)
 if (not _is_sqlalchemy_connectable(con)):
  raise NotImplementedError('read_sql_table only supported for SQLAlchemy connectable.')
 import sqlalchemy
 from sqlalchemy.schema import MetaData
 meta = MetaData(con, schema=schema)
 try:
  meta.reflect(only=[table_name], views=True)
 except sqlalchemy.exc.InvalidRequestError:
  raise ValueError(('Table %s not found' % table_name))
 pandas_sql = SQLDatabase(con, meta=meta)
 table = pandas_sql.read_table(table_name, index_col=index_col, coerce_float=coerce_float, parse_dates=parse_dates, columns=columns, chunksize=chunksize)
 if (table is not None):
  return table
 else:
  raise ValueError(('Table %s not found' % table_name), con)

def read_sql_table ( table_name , con , schema = None , index_col = None , coerce_float = True , parse_dates = None , columns = None , chunksize = None ) : con = _engine_builder ( con ) if ( not _is_sqlalchemy_connectable ( con ) ) : raise NotImplementedError ( 'read_sql_table only supported for SQLAlchemy connectable.' ) import sqlalchemy from sqlalchemy . schema import MetaData meta = MetaData ( con , schema = schema ) try : meta . reflect ( only = [ table_name ] , views = True ) except sqlalchemy . exc . InvalidRequestError : raise ValueError ( ( 'Table %s not found' % table_name ) ) pandas_sql = SQLDatabase ( con , meta = meta ) table = pandas_sql . read_table ( table_name , index_col = index_col , coerce_float = coerce_float , parse_dates = parse_dates , columns = columns , chunksize = chunksize ) if ( table is not None ) : return table else : raise ValueError ( ( 'Table %s not found' % table_name ) , con )
read sql database table into a dataframe .