From 5a1e14b7b802762618ec9160cf1cc087e55847ed Mon Sep 17 00:00:00 2001 From: FragLegs Date: Fri, 22 Aug 2014 22:53:54 -0400 Subject: [PATCH 1/2] Added warning about attribute access on 'reserved' words --- doc/source/indexing.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index 04aa07a49ba8a..c968eba0fc511 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -233,6 +233,12 @@ new column. - The attribute will not be available if it conflicts with an existing method name, e.g. ``s.min`` is not allowed. + - Similarly, the attribute will not be available if it conflicts with any of the following list: index, major_axis, + minor_axis, items, labels. + + - In any of these cases, standard indexing will still work, e.g. ``s['1']``, ``s['min']``, and ``s['index']`` will + access the corresponding element or column. + - The ``Series/Panel`` accesses are available starting in 0.13.0. If you are using the IPython environment, you may also use tab-completion to From 01bcd0f8b69f2b973865633b1c8a5c908e574031 Mon Sep 17 00:00:00 2001 From: FragLegs Date: Wed, 3 Sep 2014 22:22:07 -0400 Subject: [PATCH 2/2] Added backticks and fixed capitalization --- doc/source/indexing.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index c968eba0fc511..a8f3f5f26cd9e 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -228,13 +228,13 @@ new column. .. warning:: - You can use this access only if the index element is a valid python identifier, e.g. ``s.1`` is not allowed. - see `here for an explanation of valid identifiers + See `here for an explanation of valid identifiers `__. - The attribute will not be available if it conflicts with an existing method name, e.g. ``s.min`` is not allowed. - - Similarly, the attribute will not be available if it conflicts with any of the following list: index, major_axis, - minor_axis, items, labels. + - Similarly, the attribute will not be available if it conflicts with any of the following list: ``index``, + ``major_axis``, ``minor_axis``, ``items``, ``labels``. - In any of these cases, standard indexing will still work, e.g. ``s['1']``, ``s['min']``, and ``s['index']`` will access the corresponding element or column.