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
@@ -55,7 +61,13 @@ I want to store passenger data of the Titanic. For a number of passengers, I kno
55
61
df
56
62
57
63
To manually store data in a table, create a ``DataFrame``. When using a Python dictionary of lists, the dictionary keys will be used as column headers and
58
-
the values in each list as columns of the ``DataFrame``.
64
+
the values in each list as columns of the ``DataFrame``.
65
+
.. note::
66
+
67
+
Each DataFrame has an *index*, which uniquely identifies each row.
68
+
By default, it appears as the leftmost label in the table.
69
+
For more about the index, see :ref:`user_guide/indexing`.
70
+
59
71
60
72
.. raw:: html
61
73
@@ -70,7 +82,7 @@ SQL table or the ``data.frame`` in `R <https://www.r-project.org/>`__.
70
82
- The table has 3 columns, each of them with a column label. The column
71
83
labels are respectively ``Name``, ``Age`` and ``Sex``.
72
84
- The column ``Name`` consists of textual data with each value a
73
-
string, the column ``Age`` are numbers and the column ``Sex`` is
85
+
string, the column ``Age`` contains numbers and the column ``Sex`` contains
74
86
textual data.
75
87
76
88
In spreadsheet software, the table representation of our data would look
@@ -220,3 +232,7 @@ A more extended explanation of ``DataFrame`` and ``Series`` is provided in the :
220
232
.. raw:: html
221
233
222
234
</div>
235
+
.. tip::
236
+
237
+
You can select rows by index using ``df.loc[index]`` or ``df.iloc[position]``.
0 commit comments