8. Don’t Forget about NANs - Deepstash

8. Don’t Forget about NANs

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.

  • We first inject one NAN into the DataFrame object.
  • When we do nothing with the na_position , the NAN value is placed at the end of the sorting group.
  • When we set “first” to na_position , the NAN value appears at the top.

8

17 reads

The idea is part of this collection:

Machine Learning With Google

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

Values, Not Lifehacks

Values, Not Lifehacks

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...

About Thouse Who Reach Power Through Luck Or Inheritance.

About Thouse Who Reach Power Through Luck Or Inheritance.

When a prince gains power by luck:

  • He'll need little effort to reach the top because he flew there. Once there, he will find all kinds of difficulties without being prepared to face them.

Primitive Reflexes

Primitive Reflexes

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.

Email

I agree to receive email updates