How to use Pandas stack() Function - Spark By {Examples}

How to use Pandas stack() Function - Spark By {Examples}