Skip to content

Commit d2be63a

Browse files
mrege master
1 parent 011f0a6 commit d2be63a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/sparse/frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def sp_maker(x, index=None):
432432

433433
elif isinstance(value, SparseArray):
434434
if len(value) != len(self.index):
435-
raise AssertionError('Length of values does not match '
435+
raise ValueError('Length of values does not match '
436436
'length of index')
437437
clean = value
438438

@@ -443,7 +443,7 @@ def sp_maker(x, index=None):
443443
clean = sp_maker(clean)
444444
else:
445445
if len(value) != len(self.index):
446-
raise AssertionError('Length of values does not match '
446+
raise ValueError('Length of values does not match '
447447
'length of index')
448448
clean = sp_maker(value)
449449

0 commit comments

Comments
 (0)