Skip to content

Commit

Permalink
Made Chart y-value constructor Python 3 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 3, 2015
1 parent 0353a4f commit 70081ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/element/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self, data, **params):

def _validate_data(self, data):
if data.ndim == 1:
data = np.array(zip(range(len(data)), data))
data = np.array(list(zip(range(len(data)), data)))
if not data.shape[1] == len(self.dimensions()):
raise ValueError("Data has to match number of key and value dimensions")
return data
Expand Down

0 comments on commit 70081ac

Please sign in to comment.