File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -5713,7 +5713,8 @@ def extract_index(data):
5713
5713
raw_lengths .append (len (v ))
5714
5714
5715
5715
if not indexes and not raw_lengths :
5716
- raise ValueError ('If use all scalar values, must pass index' )
5716
+ raise ValueError ('If using all scalar values, you must must pass'
5717
+ ' an index' )
5717
5718
5718
5719
if have_series or have_dicts :
5719
5720
index = _union_indexes (indexes )
Original file line number Diff line number Diff line change @@ -2245,8 +2245,9 @@ def test_constructor_error_msgs(self):
2245
2245
try :
2246
2246
DataFrame ({'a' : False , 'b' : True })
2247
2247
except (Exception ), detail :
2248
+ msg = 'If using all scalar values, you must must pass an index'
2248
2249
self .assert_ (type (detail ) == ValueError )
2249
- self .assert_ ("If use all scalar values, must pass index" in str (detail ))
2250
+ self .assert_ (msg in str (detail ))
2250
2251
2251
2252
def test_constructor_subclass_dict (self ):
2252
2253
# Test for passing dict subclass to constructor
You can’t perform that action at this time.
0 commit comments