Skip to content

DOC: Link to Python standard encodings from read_csv documentation #8125

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 11, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions doc/source/io.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ They can take a number of arguments:
- ``converters``: a dictionary of functions for converting values in certain
columns, where keys are either integers or column labels
- ``encoding``: a string representing the encoding to use for decoding
unicode data, e.g. ``'utf-8``` or ``'latin-1'``.
unicode data, e.g. ``'utf-8``` or ``'latin-1'``. `Full list of Python
standard encodings
<https://docs.python.org/3/library/codecs.html#standard-encodings>`_
- ``verbose``: show number of NA values inserted in non-numeric columns
- ``squeeze``: if True then output with only one column is turned into Series
- ``error_bad_lines``: if False then any lines causing an error will be skipped :ref:`bad lines <io.bad_lines>`
Expand Down Expand Up @@ -372,7 +374,9 @@ result in byte strings being decoded to unicode in the result:
df['word'][1]

Some formats which encode all characters as multiple bytes, like UTF-16, won't
parse correctly at all without specifying the encoding.
parse correctly at all without specifying the encoding. `Full list of Python
standard encodings
<https://docs.python.org/3/library/codecs.html#standard-encodings>`_

.. _io.index_col:

Expand Down
4 changes: 3 additions & 1 deletion pandas/io/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ class ParserWarning(Warning):
delimiter : string, default None
Alternative argument name for sep. Regular expressions are accepted.
encoding : string, default None
Encoding to use for UTF when reading/writing (ex. 'utf-8')
Encoding to use for UTF when reading/writing (ex. 'utf-8'). `List of Python
standard encodings
<https://docs.python.org/3/library/codecs.html#standard-encodings>`_
squeeze : boolean, default False
If the parsed data only contains one column then return a Series
na_filter : boolean, default True
Expand Down