title: How to save a dataframe result into a table in databricks?
body: <p>I am trying to save a list of words that I have converted to a dataframe into a table in databricks so that I can view or refer to it later when my cluster restarts. </p>
  
  <p>I have tried the below code but it keeps giving me an error or does run but I can't see the table in the database</p>
  
  <pre class="lang-py prettyprint-override"><code>myWords_External=[['this', 'is', 'my', 'world'],['this', 'is', 'the', 'problem']]
  df1 = pd.DataFrame(myWords_External)
  df1.write.mode("overwrite").saveAsTable("temp.eehara_trial_table_9_5_19")
  </code></pre>
  
  <p>the last line gives me the following error</p>
  
  <pre><code>AttributeError: 'DataFrame' object has no attribute 'write'
  </code></pre>