Skip to content

Instantly share code, notes, and snippets.

@Hugheym
Created April 27, 2020 12:05
Show Gist options
  • Select an option

  • Save Hugheym/98ae32f6baf5ad69ce591ee3ba78ef78 to your computer and use it in GitHub Desktop.

Select an option

Save Hugheym/98ae32f6baf5ad69ce591ee3ba78ef78 to your computer and use it in GitHub Desktop.
%python
dbutils.library.installPyPI("mapboxgl")
import numpy as np
import pandas as pd
import mapboxgl
from geojson.feature import Feature, FeatureCollection
df = spark.table("h3PickupStatsWithHex").toPandas()
#data gets pulled to driver node memory when we conver to pandas.
df.head(4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment