From a2e4f06e116017ef8b1725a6c46436d6732031ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C4=9Fuzhan=20=C3=96=C4=9Freden?= Date: Thu, 28 Nov 2019 20:57:21 +0100 Subject: [PATCH 1/3] Fix typo --- doc/source/user_guide/io.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index fa47a5944f7bf..0112b51e42923 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -34,7 +34,7 @@ The pandas I/O API is a set of top level ``reader`` functions accessed like binary;`SPSS `__;:ref:`read_spss`; binary;`Python Pickle Format `__;:ref:`read_pickle`;:ref:`to_pickle` SQL;`SQL `__;:ref:`read_sql`;:ref:`to_sql` - SQL;`Google Big Query `__;:ref:`read_gbq`;:ref:`to_gbq` + SQL;`Google BigQuery `__;:ref:`read_gbq`;:ref:`to_gbq` :ref:`Here ` is an informal performance comparison for some of these IO methods. From 3861a49f2a889feaf4b8b19a64b1655137efc834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C4=9Fuzhan=20=C3=96=C4=9Freden?= Date: Thu, 28 Nov 2019 20:57:46 +0100 Subject: [PATCH 2/3] Update to_csv docstring --- pandas/core/generic.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 2e2ae4e1dfa0a..3a60b1bad9884 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3128,10 +3128,12 @@ def to_csv( Parameters ---------- - path_or_buf : str or file handle, default None - File path or object, if None is provided the result is returned as - a string. If a file object is passed it should be opened with - `newline=''`, disabling universal newlines. + path_or_buf : str, path object, file-like object, default None + If a string is passed, it can be an existing local file path, as + well as a gcs:// or s3:// path. If a file object is passed it + should be opened with `newline=''`, disabling universal newlines. + If a path object is preferred, pandas accepts any ``os.PathLike``. + If None is provided the string representation is returned. .. versionchanged:: 0.24.0 From e98a6fa09f2b9923f7dfebfb3c25606e575b1d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?O=C4=9Fuzhan=20=C3=96=C4=9Freden?= Date: Mon, 2 Dec 2019 18:24:35 +0100 Subject: [PATCH 3/3] Revert pandas.core.generic changes --- pandas/core/generic.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 3a60b1bad9884..2e2ae4e1dfa0a 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3128,12 +3128,10 @@ def to_csv( Parameters ---------- - path_or_buf : str, path object, file-like object, default None - If a string is passed, it can be an existing local file path, as - well as a gcs:// or s3:// path. If a file object is passed it - should be opened with `newline=''`, disabling universal newlines. - If a path object is preferred, pandas accepts any ``os.PathLike``. - If None is provided the string representation is returned. + path_or_buf : str or file handle, default None + File path or object, if None is provided the result is returned as + a string. If a file object is passed it should be opened with + `newline=''`, disabling universal newlines. .. versionchanged:: 0.24.0