diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 7d3cdc207310b7..d3561f8a0eadf8 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1279,8 +1279,8 @@ def from_items(cls, items, columns=None, orient='columns'): except ValueError: if not is_nested_list_like(values): - raise ValueError('The value in each (key, value) pair must ' - 'be an array, Series, or dict') + raise ValueError('The value in each (key, value) pair ' + 'must be an array, Series, or dict') elif orient == 'index': if columns is None: @@ -1297,8 +1297,8 @@ def from_items(cls, items, columns=None, orient='columns'): except TypeError: if not is_nested_list_like(values): - raise ValueError('The value in each (key, value) pair must ' - 'be an array, Series, or dict') + raise ValueError('The value in each (key, value) pair ' + 'must be an array, Series, or dict') else: # pragma: no cover raise ValueError("'orient' must be either 'columns' or 'index'")