Last active
February 11, 2022 04:20
-
-
Save kvnkho/375b8e8eb046db62a004e8cce053d756 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| from fugue import transform | |
| from pyspark.sql import SparkSession | |
| spark_session = SparkSession.builder.getOrCreate() | |
| df = transform(input_df, | |
| map_letter_to_food, | |
| schema="*, food:str", | |
| params=dict(mapping=mapping), | |
| engine=spark_session | |
| ) | |
| df.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment