Skip to content

Commit

Permalink
Use lambda x over lambda(x) syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
SamStudio8 committed Aug 26, 2014
1 parent 147b2e3 commit 0bcf393
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,15 @@ def test_transform(self):
data[i, j] = (i+1)*(j+1)

transform_map = {
0: lambda(x): x**2, # Releasing owls
1: lambda(x): x-1, # Clipping wings
2: lambda(x): x+10,# Reading books
3: lambda(x): x/2, # Manicuring
4: lambda(x): x-2, # More manicuring
5: lambda(x): x+1, # Awarding degrees
6: lambda(x): math.exp(x), # Catch some dinner
0: lambda x: x**2, # Releasing owls
1: lambda x: x-1, # Clipping wings
2: lambda x: x+10,# Reading books
3: lambda x: x/2, # Manicuring
4: lambda x: x-2, # More manicuring
5: lambda x: x+1, # Awarding degrees
6: lambda x: math.exp(x), # Catch some dinner
# 7 No flying today.
8: lambda(x): math.sqrt(x) # Doing something with splines
8: lambda x: math.sqrt(x) # Doing something with splines
}
test_transformations = {}
for label_index in transform_map:
Expand Down

0 comments on commit 0bcf393

Please sign in to comment.