From 729c52264585b57562b4e3df46e842d6e2939235 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Sun, 27 Dec 2020 16:49:27 -0500 Subject: [PATCH 1/2] DOC: make a shared include for describing the Titanic data Just a refactor; the net result should be the same. --- .../intro_tutorials/02_read_write.rst | 33 +++-------------- .../intro_tutorials/03_subset_data.rst | 34 ++---------------- .../06_calculate_statistics.rst | 34 ++---------------- .../07_reshape_table_layout.rst | 34 ++---------------- .../intro_tutorials/10_text_data.rst | 35 ++----------------- .../intro_tutorials/titanic.rst | 34 ++++++++++++++++++ 6 files changed, 50 insertions(+), 154 deletions(-) create mode 100644 doc/source/getting_started/intro_tutorials/titanic.rst diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst index c9b6a12904311..3457ed142510b 100644 --- a/doc/source/getting_started/intro_tutorials/02_read_write.rst +++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst @@ -16,38 +16,13 @@ + + How do I read and write tabular data? diff --git a/doc/source/getting_started/intro_tutorials/03_subset_data.rst b/doc/source/getting_started/intro_tutorials/03_subset_data.rst index a718c39620ce5..083e4f9d8373e 100644 --- a/doc/source/getting_started/intro_tutorials/03_subset_data.rst +++ b/doc/source/getting_started/intro_tutorials/03_subset_data.rst @@ -16,36 +16,8 @@ + + How do I select a subset of a ``DataFrame``? diff --git a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst b/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst index 6ce98ba5dbd1b..2420544c28bef 100644 --- a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst +++ b/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst @@ -16,36 +16,8 @@ + + How to calculate summary statistics? diff --git a/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst b/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst index 20c36133330c4..0f550cbeb2154 100644 --- a/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst +++ b/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst @@ -16,36 +16,8 @@ + + How to reshape the layout of tables? diff --git a/doc/source/getting_started/intro_tutorials/10_text_data.rst b/doc/source/getting_started/intro_tutorials/10_text_data.rst index b8db7de5b7b10..2df8b1cb29770 100644 --- a/doc/source/getting_started/intro_tutorials/10_text_data.rst +++ b/doc/source/getting_started/intro_tutorials/10_text_data.rst @@ -16,36 +16,7 @@ + + How to manipulate textual data? diff --git a/doc/source/getting_started/intro_tutorials/titanic.rst b/doc/source/getting_started/intro_tutorials/titanic.rst new file mode 100644 index 0000000000000..e73f18a6f2669 --- /dev/null +++ b/doc/source/getting_started/intro_tutorials/titanic.rst @@ -0,0 +1,34 @@ +:orphan: + +.. raw:: html + + +
+
+

+ +This tutorial uses the Titanic data set, stored as CSV. The data +consists of the following data columns: + +- PassengerId: Id of every passenger. +- Survived: This feature have value 0 and 1. 0 for not survived and 1 + for survived. +- Pclass: There are 3 classes: Class 1, Class 2 and Class 3. +- Name: Name of passenger. +- Sex: Gender of passenger. +- Age: Age of passenger. +- SibSp: Indication that passenger have siblings and spouse. +- Parch: Whether a passenger is alone or have family. +- Ticket: Ticket number of passenger. +- Fare: Indicating the fare. +- Cabin: The cabin of passenger. +- Embarked: The embarked category. + +.. raw:: html + +

+ To raw data +
+
From b1705f1edd2107eb41e1659e28fe154d829542c7 Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Sun, 27 Dec 2020 17:03:28 -0500 Subject: [PATCH 2/2] DOC: make shared include for air quality data card header --- .../intro_tutorials/04_plotting.rst | 20 +--------------- .../intro_tutorials/05_add_columns.rst | 20 +--------------- .../intro_tutorials/air_quality_no2.rst | 24 +++++++++++++++++++ 3 files changed, 26 insertions(+), 38 deletions(-) create mode 100644 doc/source/getting_started/intro_tutorials/air_quality_no2.rst diff --git a/doc/source/getting_started/intro_tutorials/04_plotting.rst b/doc/source/getting_started/intro_tutorials/04_plotting.rst index b7a566a35084d..ef0e5592f6f93 100644 --- a/doc/source/getting_started/intro_tutorials/04_plotting.rst +++ b/doc/source/getting_started/intro_tutorials/04_plotting.rst @@ -17,26 +17,8 @@