Created
June 18, 2018 21:11
-
-
Save vb100/58dae22b36d41f1d84a669cf18791cff to your computer and use it in GitHub Desktop.
Autoloading Tables from a Database
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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