title: Spark Dataframe - Best way to cogroup dataframes
body: <p>I currently load CSV files into Dataframes using the databricks library.</p>
  
  <p>I'm looking for the best generic approach to cogroup my loaded dataframes using a specific key since the cogroup operation is only available for PairRDDs.</p>
  
  <p>I found this post which implements a cogroup feature for Dataframes but I guess there are some different approaches :</p>
  
  <p><a href="https://gist.github.com/ahoy-jon/b65754cde98cc48b9b38" rel="nofollow">https://gist.github.com/ahoy-jon/b65754cde98cc48b9b38</a></p>
  
  <p>Have you please ever faced this situation ?</p>
  
  <p>Thanks.</p>