title: Pandas dataframe in pyspark to hive
body: <p>How to send a pandas dataframe to a hive table?</p>
  
  <p>I know if I have a spark dataframe, I can register it to a temporary table using </p>
  
  <pre><code>df.registerTempTable("table_name")
  sqlContext.sql("create table table_name2 as select * from table_name")
  </code></pre>
  
  <p>but when I try to use the pandas dataFrame to registerTempTable, I get the below error:</p>
  
  <pre><code>AttributeError: 'DataFrame' object has no attribute 'registerTempTable'
  </code></pre>
  
  <p>Is there a way for me to use a pandas dataFrame to register a temp table or convert it to a spark dataFrame and then use it register a temp table so that I can send it back to hive.</p>