error message
trying to broadcast a dictionary but always getting an error
small_data = {“key1”: “value1”, “key2”: “value2”, “key3”: “value3”}
from pyspark.sql.functions import broadcast
broadcasted_data = broadcast(small_data)`
New contributor
Mohamed Elsharawy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.