From 853927ea5ce167313cb7f0a83a6a46b22e9b8e72 Mon Sep 17 00:00:00 2001 From: Corentin Girard Date: Wed, 7 Apr 2021 00:08:55 +0200 Subject: [PATCH] Fix line_terminator escaping in python doc --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 4ef5aa1109074..b3262c61a0597 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3426,7 +3426,7 @@ def to_csv( line_terminator : str, optional The newline character or character sequence to use in the output file. Defaults to `os.linesep`, which depends on the OS in which - this method is called ('\n' for linux, '\r\n' for Windows, i.e.). + this method is called ('\\n' for linux, '\\r\\n' for Windows, i.e.). .. versionchanged:: 0.24.0 chunksize : int or None