It’s important to remember that your datasets can always contain NANs. Unless you’ve examined your data quality and know that there are no NANs, you should pay attention to that. When we sort values, these NANs are placed behind all the other valid values, by default. If we want to change this default behavior, we set the na_position
parameter.
DataFrame
object. na_position
, the NAN value is placed at the end of the sorting group. “first”
to na_position
, the NAN value appears at the top. 8
17 reads
The idea is part of this collection:
Learn more about computerscience with this collection
Understanding machine learning models
Improving data analysis and decision-making
How Google uses logic in machine learning
Related collections
Similar ideas to 8. Don’t Forget about NANs
Tech is only a tool. How you use it can make it good or not so good.
We don't need a lifehack to control our phone. We need values to ensure that technology serves us, and not the other way around.
Find out what you value in life. Then ask how technology supports those values. Set rul...
When a prince gains power by luck:
As infants we have in our DNA the moro reflex and the palmar grasp reflex. These are reflexes that develop while we were in the womb and lasts until we are at 3-6 months of age.
These reflexes are responses to our environment whether it may be ...
Read & Learn
20x Faster
without
deepstash
with
deepstash
with
deepstash
Personalized microlearning
—
100+ Learning Journeys
—
Access to 200,000+ ideas
—
Access to the mobile app
—
Unlimited idea saving
—
—
Unlimited history
—
—
Unlimited listening to ideas
—
—
Downloading & offline access
—
—
Supercharge your mind with one idea per day
Enter your email and spend 1 minute every day to learn something new.
I agree to receive email updates