-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: remove use of head() in the comparison docs #38935
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
Conversation
drop all rows with any missing values, replacing missing values with a specified | ||
value, like the mean, or forward filling from previous rows. See the | ||
:ref:`missing data documentation<missing_data>` for more. | ||
pandas provides :ref:`a variety of methods to work with missing data <missing_data>`. Here are some examples: |
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.
Split out the examples to sub-headings below.
.. note:: | ||
|
||
Throughout this tutorial, the pandas ``DataFrame`` will be displayed by calling | ||
``df.head()``, which displays the first N (default 5) rows of the ``DataFrame``. |
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.
No longer the case. Ditto for the Stata page.
@@ -138,6 +128,19 @@ In addition to text/csv, pandas supports a variety of other data formats | |||
such as Excel, HDF5, and SQL databases. These are all read via a ``pd.read_*`` | |||
function. See the :ref:`IO documentation<io>` for more details. | |||
|
|||
Limiting output | |||
~~~~~~~~~~~~~~~ |
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.
New sections in each page.
place. To make these changes persist, assign the operation back to a variable. | ||
|
||
Keep certain columns | ||
'''''''''''''''''''' |
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.
These headings are new.
Ready for review! Added a few more fixes+improvements to the pull request — see individual commits. |
Now they start with a sentence that sounds like a new paragraph.
This helps to clarify the examples by removing code that isn't relevant. Added a dedicated section to the SAS, SQL, and Stata pages.
Easier to see what's happening in each line of code, and make navigation easier.
thanks @afeld |
This helps to clarify the examples by removing code that isn't relevant. Added a dedicated section to the SAS, SQL, and Stata pages.
This builds on #38933;
will rebase and mark as ready for review once that's merged. In the meantime, the last commit is the one that can be reviewed.Thanks!closes #xxxxwhatsnew entry