Pandas update sql

后端 未结 4 2019
渐次进展
渐次进展 2020-12-07 14:16

Is there any way to do an SQL update-where from a dataframe without iterating through each line? I have a postgresql database and to update a table in the db from a datafram

4条回答
  •  伪装坚强ぢ
    2020-12-07 14:31

    I was wondering why donnt you update the df first based on your equation and then store the df to the database, you could use if_exists='replace', to store on the same table.

提交回复
热议问题