-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix README.md code sample errors #106
Conversation
target = targets.table(schema_name='myschema', | ||
table_name='mytable', | ||
db_engine=db_engine) | ||
results = move(source, target) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like just a copy and past-o where the same code got put in twice!
@@ -88,7 +88,7 @@ import os | |||
sqlalchemy_url = f"postgresql+psycopg2://username:{os.environ['DB_PASSWORD']}@hostname/database_name" | |||
db_engine = sqlalchemy.create_engine(sqlalchemy_url) | |||
|
|||
df = DataFrame.from_dict([{'a': 1}]) # or make your own! | |||
df = DataFrame.from_dict([{'a': 1}]) # or make your own! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're at it, let's make our sample code pass flake8.
|
||
session = Session() | ||
session.set_stream_logging() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As-is, this sample code didn't log. Let's give people a good starting point that they can debug from!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard to argue with this!
No description provided.