Skip to content

Instantly share code, notes, and snippets.

@Godoy
Created February 3, 2019 16:28
Show Gist options
  • Select an option

  • Save Godoy/45b4c73efcf2accc69759aed8c85b621 to your computer and use it in GitHub Desktop.

Select an option

Save Godoy/45b4c73efcf2accc69759aed8c85b621 to your computer and use it in GitHub Desktop.
python function to transform spark dataframe to pandas using limit
def pshow(sparkDf, limit=10):
return sparkDf.limit(limit).toPandas()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment