Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions doc/source/getting_started/intro_tutorials/01_table_oriented.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ documentation.
</li>
</ul>

pandas data table representation
Pandas representation of Data
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. image:: ../../_static/schemas/01_table_dataframe.svg
Expand Down Expand Up @@ -55,7 +55,13 @@ I want to store passenger data of the Titanic. For a number of passengers, I kno
df

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
the values in each list as columns of the ``DataFrame``.
the values in each list as columns of the ``DataFrame``.
.. note::

Each DataFrame has an *index*, which uniquely identifies each row.
By default, it appears as the leftmost label in the table.
For more about the index, see :ref:`user_guide/indexing`.


.. raw:: html

Expand All @@ -70,7 +76,7 @@ SQL table or the ``data.frame`` in `R <https://www.r-project.org/>`__.
- The table has 3 columns, each of them with a column label. The column
labels are respectively ``Name``, ``Age`` and ``Sex``.
- The column ``Name`` consists of textual data with each value a
string, the column ``Age`` are numbers and the column ``Sex`` is
string, the column ``Age`` contains numbers and the column ``Sex`` contains
textual data.

In spreadsheet software, the table representation of our data would look
Expand Down Expand Up @@ -220,3 +226,7 @@ A more extended explanation of ``DataFrame`` and ``Series`` is provided in the :
.. raw:: html

</div>
.. tip::

You can select rows by index using ``df.loc[index]`` or ``df.iloc[position]``.

Loading