From 3f10c30546b15d1d7bfeb3b17482f08f793ec152 Mon Sep 17 00:00:00 2001 From: Da Cheezy Mobsta Date: Wed, 10 Oct 2018 03:46:03 +0100 Subject: [PATCH] Corrected 'columns' argument of 'to_csv' method Compared the 'to_csv' method described in https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_csv.html with the same method described in https://pandas.pydata.org/pandas-docs/stable/io.html#writing-to-csv-format and noticed difference between the two in the 'columns' and 'cols' argument. --- doc/source/io.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/io.rst b/doc/source/io.rst index 039cba2993381..56da4dbea8706 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -1603,7 +1603,7 @@ function takes a number of arguments. Only the first is required. * ``sep`` : Field delimiter for the output file (default ",") * ``na_rep``: A string representation of a missing value (default '') * ``float_format``: Format string for floating point numbers -* ``cols``: Columns to write (default None) +* ``columns``: Columns to write (default None) * ``header``: Whether to write out the column names (default True) * ``index``: whether to write row (index) names (default True) * ``index_label``: Column label(s) for index column(s) if desired. If None