CLN: Misc Python 2 references (#26085) · pandas-dev/pandas@81f5c01 (original) (raw)
`@@ -2579,11 +2579,8 @@ def to_pickle(self, path, compression='infer',
`
2579
2579
` protocol : int
`
2580
2580
` Int which indicates which protocol should be used by the pickler,
`
2581
2581
` default HIGHEST_PROTOCOL (see [1]_ paragraph 12.1.2). The possible
`
2582
``
`-
values for this parameter depend on the version of Python. For
`
2583
``
`-
Python 2.x, possible values are 0, 1, 2. For Python>=3.0, 3 is a
`
2584
``
`-
valid value. For Python >= 3.4, 4 is a valid value. A negative
`
2585
``
`-
value for the protocol parameter is equivalent to setting its value
`
2586
``
`-
to HIGHEST_PROTOCOL.
`
``
2582
`+
values are 0, 1, 2, 3, 4. A negative value for the protocol
`
``
2583
`+
parameter is equivalent to setting its value to HIGHEST_PROTOCOL.
`
2587
2584
``
2588
2585
` .. [1] https://docs.python.org/3/library/pickle.html
`
2589
2586
` .. versionadded:: 0.21.0
`
`@@ -2836,7 +2833,7 @@ def to_latex(self, buf=None, columns=None, col_space=None, header=True,
`
2836
2833
` characters in column names.
`
2837
2834
` encoding : str, optional
`
2838
2835
` A string representing the encoding to use in the output file,
`
2839
``
`-
defaults to 'ascii' on Python 2 and 'utf-8' on Python 3.
`
``
2836
`+
defaults to 'utf-8'.
`
2840
2837
` decimal : str, default '.'
`
2841
2838
` Character recognized as decimal separator, e.g. ',' in Europe.
`
2842
2839
``
`@@ -2965,7 +2962,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
`
2965
2962
` Python write mode, default 'w'.
`
2966
2963
` encoding : str, optional
`
2967
2964
` A string representing the encoding to use in the output file,
`
2968
``
`-
defaults to 'ascii' on Python 2 and 'utf-8' on Python 3.
`
``
2965
`+
defaults to 'utf-8'.
`
2969
2966
` compression : str, default 'infer'
`
2970
2967
` Compression mode among the following possible values: {'infer',
`
2971
2968
`` 'gzip', 'bz2', 'zip', 'xz', None}. If 'infer' and path_or_buf
``