Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.).


i use write_sql but in this case you would have to resolve the object values to their integer primary keys.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: