summaryrefslogtreecommitdiff
path: root/doc/source/user
diff options
context:
space:
mode:
authorBen Nathanson <github@bigriver.xyz>2020-09-23 09:06:09 -0400
committerBen Nathanson <github@bigriver.xyz>2020-09-23 09:06:09 -0400
commit9c799c4fd07c2b3d13c189fda5bee4d6b45e54bb (patch)
tree23801ebbc80c39f74f5ddc8183f959f207db8f45 /doc/source/user
parentfe7c3614a491d087ddc9102bfcff63bed7f8cea1 (diff)
downloadnumpy-9c799c4fd07c2b3d13c189fda5bee4d6b45e54bb.tar.gz
DOC: Update pickle section in PR #17353
Diffstat (limited to 'doc/source/user')
-rw-r--r--doc/source/user/how-to-io.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/doc/source/user/how-to-io.rst b/doc/source/user/how-to-io.rst
index 49c0583c3..f8b4dee9f 100644
--- a/doc/source/user/how-to-io.rst
+++ b/doc/source/user/how-to-io.rst
@@ -296,13 +296,12 @@ NumPy arrays are **not** directly
Save/restore using a pickle file
******************************************************************************
-Not recommended, due to lack of security and portability.
+Avoid when possible; :doc:`pickles <python:library/pickle>` are not secure
+against erroneous or maliciously constructed data.
- * **security**: not secure against erroneous or maliciously constructed data
- * **portability**: may not be loadable on different Python installations
-
-Use :func:`numpy.save` and :func:`numpy.load`. Set ``allow_pickle=False``, unless
-the array dtype includes Python objects, in which case pickling is required.
+Use :func:`numpy.save` and :func:`numpy.load`. Set ``allow_pickle=False``,
+unless the array dtype includes Python objects, in which case pickling is
+required.
******************************************************************************
Convert from a pandas DataFrame to a NumPy array