title: how to get an integer value while querying a count query through DataFrame?
body: <p>I am writing this code to get the integer value of count in specified table:</p>
  
  <pre><code>sc = SparkContext("local", "spar")
  hive_context = HiveContext(sc)
  hive_context.sql("use zs_trainings_trainings_db")
  df = hive_context.sql("select count(*) from ldg_sales")
  </code></pre>