I have a DataFrame created in the following way.
val someDF = Seq((8, "bat"),(64, "mouse"),(-27, "horse")).toDF("number", "word")
someDF.printSchema
root
|-- number: integer (nullable = false)
|-- word: string (nullable = true)
Using SQL API, one can insert a row into it by creating a temp table and running an insert query. Is there any way one can append/add a new row using methods of the DataFrame API ?
DataFrames/Datasets are part of what is called "Spark SQL". You should say "in Spark SQL, how to [...] without using SQL API/SQL statement"