Created
February 3, 2019 16:28
-
-
Save Godoy/45b4c73efcf2accc69759aed8c85b621 to your computer and use it in GitHub Desktop.
python function to transform spark dataframe to pandas using limit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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