Skip to content

Instantly share code, notes, and snippets.

@Godoy
Created February 3, 2019 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Godoy/45b4c73efcf2accc69759aed8c85b621 to your computer and use it in GitHub Desktop.
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