Skip to content

Conversation

@jorisvandenbossche
Copy link
Member

Initial commit for this.

Questions:

  • To catch Panels (and raiseNotImplementedError), should I do this in sql.to_sql or in NDFrame.to_sql?
  • To support Series, I can just call to_frame on it. Is this OK?

And should add tests for this.

@jreback
Copy link
Contributor

jreback commented Mar 11, 2014

I would to this in sql.to_sql (then NDFrame.to_sql is pretty generic)

you can call to_frame on Series, sure

@jreback jreback added the SQL label Mar 11, 2014
@jreback jreback added this to the 0.14.0 milestone Mar 11, 2014
@jorisvandenbossche
Copy link
Member Author

added tests

jorisvandenbossche added a commit that referenced this pull request Mar 16, 2014
SQL: move df.to_sql to generic + update with new functionality
@jorisvandenbossche jorisvandenbossche merged commit e0058fb into pandas-dev:master Mar 16, 2014
@jorisvandenbossche jorisvandenbossche deleted the sql-to_sql branch March 16, 2014 14:37
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 Testing pandas testing functions or related to the test suite

2 participants