title: Spark : how can i create local dataframe in each executor
body: <p>In spark scala is there a way to create <strong>local dataframe in executors like pandas in pyspark</strong>. In mappartitions method i want to convert iterator to local dataframe (like pandas dataframe  in  python) so that dataframe features can be used instead of hand coding them on  iterators.</p>