values in `x` have same shape).
ValueError: if duplicate keys are in both `x` and `y` when `y` is a dict.
ValueError: if x or y is an empty dict.
- TypeError: `x` is not a dict or array, or if `shuffle` is not bool.
+ TypeError: `x` is not a dict or array.
+ ValueError: if 'shuffle' is not provided or a bool.
"""
if not isinstance(shuffle, bool):
raise ValueError('shuffle must be provided and explicitly set as boolean '
Raises:
ValueError: if `x` already contains a column with the same name as `y`, or
if the indexes of `x` and `y` don't match.
- TypeError: `shuffle` is not bool.
+ ValueError: if 'shuffle' is not provided or a bool.
"""
if not HAS_PANDAS:
raise TypeError(