Created
May 30, 2015 04:05
-
-
Save clintmjohnson/b659bf663c98387a8f7b to your computer and use it in GitHub Desktop.
Python Blaze Example List Computation
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 blaze import * | |
| accounts = Symbol('accounts', 'var * {id: int, name: string, amount: int}') | |
| deadbeats = accounts[accounts.amount < 100].name | |
| L = [[1, 'Alice', 100], | |
| [2, 'Bob', -200], | |
| [3, 'Charlie', 300], | |
| [4, 'Denis', 400], | |
| [5, 'Edith', -500]] | |
| print(list(compute(deadbeats, L))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment