Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@canimus
Created January 4, 2021 09:41
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 canimus/364eb2fb976fc941fac838541c2337ff to your computer and use it in GitHub Desktop.
Save canimus/364eb2fb976fc941fac838541c2337ff to your computer and use it in GitHub Desktop.
PySpark Union JSON
df = reduce(lambda a,b: a.union(b), [spark.read.json(f'{x}/*result.json') for x in range(195, 202)])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment