You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/timeseries.rst
+21-15
Original file line number
Diff line number
Diff line change
@@ -475,44 +475,50 @@ DatetimeIndex Partial String Indexing also works on DataFrames with a ``MultiInd
475
475
dft2 = dft2.swaplevel(0, 1).sort_index()
476
476
dft2.loc[idx[:, '2013-01-05'], :]
477
477
478
-
String Indexing: slice vs. exact match
479
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
478
+
Slice vs. exact match
479
+
^^^^^^^^^^^^^^^^^^^^^
480
480
481
-
The same string used as an indexing parameter can be treated either as slice or as exact match depending on the resolution of an index. If the string is less precise than index, it will be treated as a slice, otherwise as an exact match.
481
+
The same string used as an indexing parameter can be treated either as a slice or as an exact match depending on the resolution of an index. If the string is less accurate than the index, it will be treated as a slice, otherwise as an exact match.
If a string used in ``DataFrame``'s ``[]`` indexing is treated as an exact match the selection will be column-wise and not row-wise. This is consistent with :ref:`Indexing Basics <indexing.basics>`. For example, the following code will raise ``KeyError`` as there is no column with index ``'2012-12-31 23:59'``:
510
+
If string used in ``DataFrame``'s ``[]`` indexing is treated as an exact match the selection will be column-wise and not row-wise. This is consistent with :ref:`Indexing Basics <indexing.basics>`. For example, the following code will raise ``KeyError`` as there is no column with index ``'2012-12-31 23:59'``:
0 commit comments