Skip to content

Commit

Permalink
DOC: fix slashes in read_csv line_terminator/sep kwargs descriptions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnheide authored and jorisvandenbossche committed Jul 25, 2016
1 parent 4c2840e commit 4dd734c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
quotechar='"', line_terminator='\n', chunksize=None,
tupleize_cols=False, date_format=None, doublequote=True,
escapechar=None, decimal='.', **kwds):
"""Write DataFrame to a comma-separated values (csv) file
r"""Write DataFrame to a comma-separated values (csv) file
Parameters
----------
Expand Down Expand Up @@ -1343,7 +1343,7 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
a string representing the compression to use in the output file,
allowed values are 'gzip', 'bz2', 'xz',
only used when the first argument is a filename
line_terminator : string, default '\\n'
line_terminator : string, default ``'\n'``
The newline character or character sequence to use in the output
file
quoting : optional constant from csv module
Expand Down
8 changes: 4 additions & 4 deletions pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@
Parser engine to use. The C engine is faster while the python engine is
currently more feature-complete."""

_sep_doc = """sep : str, default {default}
_sep_doc = r"""sep : str, default {default}
Delimiter to use. If sep is None, will try to automatically determine
this. Separators longer than 1 character and different from '\s+' will be
interpreted as regular expressions, will force use of the python parsing
engine and will ignore quotes in the data. Regex example: '\\r\\t'"""
this. Separators longer than 1 character and different from ``'\s+'`` will
be interpreted as regular expressions, will force use of the python parsing
engine and will ignore quotes in the data. Regex example: ``'\r\t'``"""

_read_csv_doc = """
Read CSV (comma-separated) file into DataFrame
Expand Down

0 comments on commit 4dd734c

Please sign in to comment.