diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 87f25f578c3c6..834cd992f5650 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3088,7 +3088,7 @@ def to_csv( .. versionchanged:: 1.2.0 - Compression is supported for non-binary file objects. + Compression is supported for binary file objects. quoting : optional constant from csv module Defaults to csv.QUOTE_MINIMAL. If you have set a `float_format`