mirror of
https://github.com/donnemartin/data-science-ipython-notebooks.git
synced 2024-03-22 13:30:56 +08:00
Added comment to describe what map does.
This commit is contained in:
parent
cd6afd474c
commit
2de3d867c4
|
@ -19,6 +19,7 @@ class TestTransformUtil():
|
||||||
assert_equal(TransformUtil.remove_punctuation('!#?'), '')
|
assert_equal(TransformUtil.remove_punctuation('!#?'), '')
|
||||||
|
|
||||||
def test_map_remove_punctuation(self):
|
def test_map_remove_punctuation(self):
|
||||||
|
# Map applies a function to a collection
|
||||||
output = map(TransformUtil.remove_punctuation, self.states)
|
output = map(TransformUtil.remove_punctuation, self.states)
|
||||||
assert_equal('!#?' not in output, True)
|
assert_equal('!#?' not in output, True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user