4 ms·
Somewhat related: how does one insert a Pandas DataFrame into a Postgres table, in which most fields are merely integers being foreign keys of other tables? The
by Bishonen88 7y ago
Somewhat related: how does one insert a Pandas DataFrame into a Postgres table, in which most fields are merely integers being foreign keys of other tables? The DataFrame itself contains the real values (e.g. Cities, Countries etc.).
- dekhn 7y agoi use write_sql but in this case you would have to resolve the object values to their integer primary keys.