Skip to content

Commit f159122

Browse files
Merge pull request #8691 from sangheestyle/master
CLN: fix grammar in extract_index error message
2 parents 5d22bd1 + 39536c9 commit f159122

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4707,7 +4707,7 @@ def extract_index(data):
47074707
raw_lengths.append(len(v))
47084708

47094709
if not indexes and not raw_lengths:
4710-
raise ValueError('If using all scalar values, you must must pass'
4710+
raise ValueError('If using all scalar values, you must pass'
47114711
' an index')
47124712

47134713
if have_series or have_dicts:

pandas/tests/test_frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2625,7 +2625,7 @@ def test_constructor_error_msgs(self):
26252625
with assertRaisesRegexp(ValueError, "Shape of passed values is \(3, 2\), indices imply \(2, 2\)"):
26262626
DataFrame(np.random.rand(2,3), columns=['A', 'B'], index=[1, 2])
26272627

2628-
with assertRaisesRegexp(ValueError, 'If using all scalar values, you must must pass an index'):
2628+
with assertRaisesRegexp(ValueError, 'If using all scalar values, you must pass an index'):
26292629
DataFrame({'a': False, 'b': True})
26302630

26312631
def test_constructor_with_embedded_frames(self):

0 commit comments

Comments
 (0)