-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: make shared includes for describing the datasets in the Getting Started tutorials #38735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,26 +16,8 @@ | |
</div> | ||
<ul class="list-group list-group-flush"> | ||
<li class="list-group-item"> | ||
<div data-toggle="collapse" href="#collapsedata" role="button" aria-expanded="false" aria-controls="collapsedata"> | ||
<span class="badge badge-dark">Air quality data</span> | ||
</div> | ||
<div class="collapse" id="collapsedata"> | ||
<div class="card-body"> | ||
<p class="card-text"> | ||
|
||
For this tutorial, air quality data about :math:`NO_2` is used, made | ||
available by `openaq <https://openaq.org>`__ and using the | ||
`py-openaq <http://dhhagan.github.io/py-openaq/index.html>`__ package. | ||
The ``air_quality_no2.csv`` data set provides :math:`NO_2` values for | ||
the measurement stations *FR04014*, *BETR801* and *London Westminster* | ||
in respectively Paris, Antwerp and London. | ||
|
||
.. raw:: html | ||
|
||
</p> | ||
<a href="https://github.com/pandas-dev/pandas/tree/master/doc/data/air_quality_no2.csv" class="btn btn-dark btn-sm">To raw data</a> | ||
</div> | ||
</div> | ||
. include:: air_quality_no2.rst | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. here as well |
||
|
||
.. ipython:: python | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
doc/source/getting_started/intro_tutorials/air_quality_no2.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
:orphan: | ||
|
||
.. raw:: html | ||
|
||
<div data-toggle="collapse" href="#collapsedata" role="button" aria-expanded="false" aria-controls="collapsedata"> | ||
<span class="badge badge-dark">Air quality data</span> | ||
</div> | ||
<div class="collapse" id="collapsedata"> | ||
<div class="card-body"> | ||
<p class="card-text"> | ||
|
||
For this tutorial, air quality data about :math:`NO_2` is used, made | ||
available by `openaq <https://openaq.org>`__ and using the | ||
`py-openaq <http://dhhagan.github.io/py-openaq/index.html>`__ package. | ||
The ``air_quality_no2.csv`` data set provides :math:`NO_2` values for | ||
the measurement stations *FR04014*, *BETR801* and *London Westminster* | ||
in respectively Paris, Antwerp and London. | ||
|
||
.. raw:: html | ||
|
||
</p> | ||
<a href="https://github.com/pandas-dev/pandas/tree/master/doc/data/air_quality_no2.csv" class="btn btn-dark btn-sm">To raw data</a> | ||
</div> | ||
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
:orphan: | ||
|
||
.. raw:: html | ||
|
||
<div data-toggle="collapse" href="#collapsedata" role="button" aria-expanded="false" aria-controls="collapsedata"> | ||
<span class="badge badge-dark">Titanic data</span> | ||
</div> | ||
<div class="collapse" id="collapsedata"> | ||
<div class="card-body"> | ||
<p class="card-text"> | ||
|
||
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 | ||
|
||
</p> | ||
<a href="https://github.com/pandas-dev/pandas/tree/master/doc/data/titanic.csv" class="btn btn-dark btn-sm">To raw data</a> | ||
</div> | ||
</div> |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a missing second dot here, I think (at the beginning of the line)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to stop making pull requests when sleep deprived 🤦 Sorry! Fixed in #38839.