Skip to content

Instantly share code, notes, and snippets.

@cosmic-cortex
Last active May 5, 2020 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosmic-cortex/df9adf25afa064fb8cc0705a2497241d to your computer and use it in GitHub Desktop.
Save cosmic-cortex/df9adf25afa064fb8cc0705a2497241d to your computer and use it in GitHub Desktop.
def project(table: Set[Record], columns: List[str]) -> Set[Record]:
table_out = {Record({column: record[column] for column in columns}) for record in table}
return table_out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment