-
Notifications
You must be signed in to change notification settings - Fork 914
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
Use SQLAlchemy on newer pandas versions #109
Conversation
…ith pandas.read_sql
… older pandas versions
@@ -27,12 +25,13 @@ def test_read_postgis_default(self): | |||
sql = "SELECT * FROM nybb;" | |||
df = read_postgis(sql, con) | |||
finally: | |||
if PANDAS_NEW_SQL_API: | |||
# It's not really a connection, it's an engine | |||
con = con.connect() |
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 repeated logic is horrible.
This might help: travis-ci/travis-ci#2401 |
…failing on Travis.
This reverts commit 5bdbd7b.
@jwass Thanks, I've tried every permutation I can think of, no luck with Aside: having a Travis-equivalent VM locally would be nice. |
Totally messed up the history here, closing in favor of #123. |
Uses SQLAlchemy if running on pandas 0.14 or later, otherwise the DB API for connecting to postGIS.
Closes #98.