KuRuVIIIII
KuRuVIIIII

Reputation: 17

Value "not a number" in my dataframe not found

I have a problem because I can't find the NaN values that appear when I use describe() on my dataframe. I'm working with Jupyter.

Here is what it looks like

my dataframe describe

And when I use .isnull() and info() functions I got :

isnull() utilization

info()

Can you help me please ?

Upvotes: 1

Views: 208

Answers (2)

Arka-cell
Arka-cell

Reputation: 906

You're using describe to get basic descriptive statistics in order to make inferences, such as the number of years on your dataframe which is set to NaN in unique because probably all of the rows have the exact same year. So yes, there aren't NaNs in your dataset.

Upvotes: 0

Park
Park

Reputation: 2484

As you confirmed, it seems that there is no NaN in df.

I think you are confused with what df.describes returns. df.describes returns a summary of the dataframe. df is not df.describe().

When you use describe(), the NaN values mean it is impossible to calculate. For example, there are values of object types, such as Month, Date, and Age_Group. It is impossible to calculate mean value of Month because Month's data type is object, not int.

Upvotes: 1

Related Questions