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

Create table from dataframe? #31

Open
EgorKraevTransferwise opened this issue Nov 19, 2020 · 5 comments
Open

Create table from dataframe? #31

EgorKraevTransferwise opened this issue Nov 19, 2020 · 5 comments

Comments

@EgorKraevTransferwise
Copy link

Is there a way to automatically create a table matching the column types of a dataframe, similar to pandas.DataFrame.to_sql()?

@timfeirg
Copy link

i can see that there's no such function currently. but is this feature welcomed? can I send a PR if I managed to implement it? @kszucs

@kszucs
Copy link
Owner

kszucs commented Mar 29, 2021

Definitely!

@9en9i
Copy link

9en9i commented Mar 30, 2021

@timfeirg is it done?

@timfeirg
Copy link

timfeirg commented Apr 6, 2021

there's this package https://github.com/cloudflare/sqlalchemy-clickhouse that already can generate create table statements, I've tried but it is clearly not finished yet, but we're better off improving things in that repo, because pandas already supports sqlalchemy.

@kszucs
Copy link
Owner

kszucs commented Apr 6, 2021

Note that this package will switch to use columnar output formats in the future, once clickhouse extends its type support for these formats, see #29 for reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants