%python
dataframe.count()
#output 1179
%python
dataframe.write.mode("overwrite").saveAsTable("tablename")
%sql
select count(*) from tablename
--output 1069
What can I be doing wrong? (these are different cells in databricks)
I want to overwrite the data. Dataframe has more rows, but is dropping some rows while writing into the table.