We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 011f0a6 commit d2be63aCopy full SHA for d2be63a
pandas/core/sparse/frame.py
@@ -432,7 +432,7 @@ def sp_maker(x, index=None):
432
433
elif isinstance(value, SparseArray):
434
if len(value) != len(self.index):
435
- raise AssertionError('Length of values does not match '
+ raise ValueError('Length of values does not match '
436
'length of index')
437
clean = value
438
@@ -443,7 +443,7 @@ def sp_maker(x, index=None):
443
clean = sp_maker(clean)
444
else:
445
446
447
448
clean = sp_maker(value)
449
0 commit comments