BUG: Don't return a map from chrange.

This commit is contained in:
Scott Sanderson
2016-02-16 12:35:49 -05:00
parent b26a40b298
commit 4bc42d5658
+3 -3
View File
@@ -18,7 +18,7 @@ from numpy.testing import assert_allclose, assert_array_equal
import pandas as pd
from pandas.tseries.offsets import MonthBegin
from six import iteritems, itervalues
from six.moves import filter
from six.moves import filter, map
from sqlalchemy import create_engine
from toolz import concat
@@ -260,10 +260,10 @@ def chrange(start, stop):
Example
-------
>>> list(chrange('A', 'C'))
>>> chrange('A', 'C')
['A', 'B', 'C']
"""
return map(chr, range(ord(start), ord(stop) + 1))
return list(map(chr, range(ord(start), ord(stop) + 1)))
def make_rotating_equity_info(num_assets,