Created
August 21, 2020 03:02
-
-
Save napsternxg/060b2d507bd2384cc72acab9ca9ddfc8 to your computer and use it in GitHub Desktop.
Reading Wikidata dumps via Spark
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
# Takes around 30 minutes just to show df.head() | |
%%time | |
wikidata_dump_path="/path/to/latest-all.json.bz2" | |
df = sql.read.option("multiline", "true").json(wikidata_dump_path) | |
df.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment