16
16
</div >
17
17
<ul class =" list-group list-group-flush" >
18
18
<li class =" list-group-item" >
19
- <div data-toggle =" collapse" href =" #collapsedata" role =" button" aria-expanded =" false" aria-controls =" collapsedata" >
20
- <span class =" badge badge-dark" >Titanic data</span >
21
- </div >
22
- <div class =" collapse" id =" collapsedata" >
23
- <div class =" card-body" >
24
- <p class =" card-text" >
25
-
26
- This tutorial uses the Titanic data set, stored as CSV. The data
27
- consists of the following data columns:
28
-
29
- - PassengerId: Id of every passenger.
30
- - Survived: This feature has value 0 and 1. 0 for not survived and 1
31
- for survived.
32
- - Pclass: There are 3 classes: Class 1, Class 2 and Class 3.
33
- - Name: Name of passenger.
34
- - Sex: Gender of passenger.
35
- - Age: Age of passenger.
36
- - SibSp: Indication that passengers have siblings and spouses.
37
- - Parch: Whether a passenger is alone or has a family.
38
- - Ticket: Ticket number of passenger.
39
- - Fare: Indicating the fare.
40
- - Cabin: The cabin of passenger.
41
- - Embarked: The embarked category.
42
19
43
- .. raw :: html
44
-
45
- </p >
46
- <a href =" https://github.com/pandas-dev/pandas/tree/master/doc/data/titanic.csv" class =" btn btn-dark btn-sm" >To raw data</a >
47
- </div >
48
- </div >
20
+ .. include :: titanic.rst
49
21
50
22
.. ipython :: python
51
23
@@ -54,8 +26,8 @@ consists of the following data columns:
54
26
55
27
.. raw :: html
56
28
57
- </li >
58
- </ul >
29
+ </li >
30
+ </ul >
59
31
</div >
60
32
61
33
How do I select a subset of a ``DataFrame ``?
0 commit comments