Created
January 30, 2018 11:01
-
-
Save brunoripa/684c9fd288fbec66d057f7dff67720f2 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
class Split(apache_beam.DoFn): | |
def process(self, element): | |
country, duration, user = element.split(",") | |
return [{ | |
'country': country, | |
'duration': float(duration), | |
'user': user | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment