Save dataframe to postgres database


I need to save the dataframe to postgres database in scala.Can anyone help me


Does this help?

If not, there might be some related discussions in stackoverflow that might

From a Scala newbie myself

Like a Pandas dataframe? Or could you be more specific about the data
structure since Scala doesn’t have such a named collection that I know of?

In any event, you should be able to use any Java driver for Postrgres. As a
nice simple way to deal with this I can recommend anorm, though I’ve only
ever used it for MySQL access. Here’s the link

Search that page and you’ll find a link to the Postrgres module for anorm.

may be an option