Map partition on dataframe

Hi,
Any one can give some link or example for how to call mapPartition on datafram and will return new df.
Thanks
Suresh