dolthub / dolthub/doltpy

let get_df_table_writer infer primary keys from df.index

Open
#110 1 comment 0 reactions 1 assignee Claimed by @oscarbatori View on GitHub
enhancement
Dominant language
Python
Stars
62
Forks
12
PR merge metrics
No merged PRs in 30d

Description

the function `get_df_table_writer` expects a list of primary keys which are columns of the data frame. I however have a MultiIndex with names that should be used for the compound primary key. this is very much like the `df.to_sql` works as well. But I need a way to "REPLACE INTO" instead of inserting. I had the hope the get_df_table_writer function could do that.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.