Skip to content

Commit

Permalink
Potential fix for failed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cbertinato committed Feb 23, 2018
1 parent b9d5e2f commit b6df1c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,7 @@ def __init__(self, data=None, index=None, dtype=None, name=None,
if not is_list_like(data):
data = [data]
index = com._default_index(len(data))
else:
if not is_scalar(data) and len(index) != len(data):
elif is_list_like(data) and len(index) != len(data):
raise ValueError('Length of passed values is {val}, '
'index implies {ind}'
.format(val=len(data), ind=len(index)))
Expand Down

0 comments on commit b6df1c8

Please sign in to comment.