From 39f11331744aeb6d8e8cd3c557a1e107d0dac816 Mon Sep 17 00:00:00 2001 From: Yaron de Leeuw Date: Thu, 27 Feb 2014 20:13:03 +0200 Subject: DOC: npyio.recfromcsv keyword argument changes Added a note to recfromcsv about the `dtype` keyword, as suggested by @hpaulj. Also added a note to the release notes, about the change in the `update` keyword, as suggested by @charris. --- doc/release/1.9.0-notes.rst | 6 ++++++ numpy/lib/npyio.py | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/doc/release/1.9.0-notes.rst b/doc/release/1.9.0-notes.rst index d674552a3..c65cfc04c 100644 --- a/doc/release/1.9.0-notes.rst +++ b/doc/release/1.9.0-notes.rst @@ -207,6 +207,12 @@ is being casted. Previously the casting was allowed even if the result was truncated. +`npyio.recfromcsv` keyword arguments change +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +`npyio.recfromcsv` no longer accepts the undocumented `update` keyword, +which used to override the `dtype` keyword. + + C-API ~~~~~ diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 341008c9e..84d4c35bd 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1871,6 +1871,11 @@ def recfromcsv(fname, **kwargs): -------- numpy.genfromtxt : generic function to load ASCII data. + Notes + ----- + By default, `dtype` is None, which means that the data-type of the output + array will be determined from the data. + """ # Set default kwargs as relevant to csv import. # These seem to be undocumented. (case_sensitive is mentioned in basics.io) -- cgit v1.2.1