Skip to content
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

BUG: force list type for tuples from chunked sql table reads #11522 #11861

Merged
merged 1 commit into from
Dec 19, 2015
Merged

BUG: force list type for tuples from chunked sql table reads #11522 #11861

merged 1 commit into from
Dec 19, 2015

Conversation

grahamjeffries
Copy link
Contributor

Closes #11522.

@jorisvandenbossche jorisvandenbossche added the IO SQL to_sql, read_sql, read_sql_query label Dec 18, 2015
chunksize = 5
chunk_gen = pd.read_sql_query(sql=query, con=self.conn,
chunksize=chunksize, index_col="index")
chunk_df = pd.DataFrame()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is superfluous

@jorisvandenbossche
Copy link
Member

@grahamjeffries Looks good! thanks

This is actually in code that is deprecated, and will be removed in the future. But as it is only a small change, ok to let this in for the case it will not yet be removed in the next version.

@jorisvandenbossche jorisvandenbossche added this to the 0.18.0 milestone Dec 18, 2015
@grahamjeffries
Copy link
Contributor Author

Sure thing. Yeah, I wasn't quite sure what the protocol was for testing cases which fail with an exception. I'll update the PR

@jorisvandenbossche
Copy link
Member

@grahamjeffries OK! Just a last question, can you add a note in the whatsnew file (doc/source/whatsnew/v0.18.0.txt) in the bug fixes section, and then also squash the commits? (http://pandas.pydata.org/pandas-docs/stable/contributing.html#combining-commits)

@grahamjeffries
Copy link
Contributor Author

Noted and squashed.

@jorisvandenbossche
Copy link
Member

Thanks a lot!

jorisvandenbossche added a commit that referenced this pull request Dec 19, 2015
BUG: force list type for tuples from chunked sql table reads #11522
@jorisvandenbossche jorisvandenbossche merged commit 1357321 into pandas-dev:master Dec 19, 2015
@grahamjeffries grahamjeffries deleted the bugfix-11522 branch December 19, 2015 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO SQL to_sql, read_sql, read_sql_query
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants