diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 9414786424245..89e80b3b42017 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -574,8 +574,8 @@ def update_dtype( "Constructing a CategoricalDtype without specifying " "`ordered` will default to `ordered=False` in a future " "version, which will cause the resulting categorical's " - "`ordered` attribute to change to False; `ordered=True`" - " must be explicitly passed in order to be retained" + "`ordered` attribute to change to False; `ordered=True` " + "must be explicitly passed in order to be retained" ) warnings.warn(msg, FutureWarning, stacklevel=3)