-
Notifications
You must be signed in to change notification settings - Fork 5.3k
how-to-drop-null-values-in-pandas #678
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
base: master
Are you sure you want to change the base?
Conversation
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.
@eyrei123, just a couple of minor comments on the materials repo. Note, I changed the title of the PR and used the keyphrase instead. It's best to make the PR titles descriptive to demostrate which article they belong to
|
||
# 4. Display the exams students have sat five or more times. | ||
|
||
grades.dropna(axis=0, thresh=6) # Remember there are seven 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.
I went for this:
grades.dropna(thresh=5, subset=grades.columns[1:])
but yours is simpler!
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.
My mind is simpler, remember. :-)
@@ -0,0 +1,25 @@ | |||
import pandas as pd |
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.
perhaps best to put an underscore in the script name to match the others (and for best practice)
Where to put new files:
my-awesome-article
How to merge your changes: