Skip to content

Instantly share code, notes, and snippets.

@vb100
Created June 18, 2018 21:11
Show Gist options
  • Save vb100/58dae22b36d41f1d84a669cf18791cff to your computer and use it in GitHub Desktop.
Save vb100/58dae22b36d41f1d84a669cf18791cff to your computer and use it in GitHub Desktop.
Autoloading Tables from a Database
# Import Table
from sqlalchemy import Table
# Reflect census table from the engine: census
census = Table('census', metadata, autoload=True, autoload_with=engine)
# Print census table metadata
print(repr(census))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment