How to get the skew of two variables in Python? Guided Project: Visualizing Earnings Based On College Majors

Guided Project: Visualizing Earnings Based On College Majors

recent_grads.plot(x='Total', y='Median', kind='scatter')

I have a scatterplot with total against median but do not know how to extract the skew reading whether positive or negative . I have tried Google but only see how to get the result for one column:

recent_grads[‘Median’].skew()

please advise?

You can conclude skewness by just looking at the plot.

image

A left-skewed distribution has a long left tail. Left-skewed distributions are also called negatively-skewed distributions. That’s because there is a long tail in the negative direction on the number line. The mean is also to the left of the peak.

A right-skewed distribution has a long right tail. Right-skewed distributions are also called positive-skew distributions. That’s because there is a long tail in the positive direction on the number line. The mean is also to the right of the peak.

1 Like

Thanks , I was able to find that but that I was not what I was looking for since it is not a numerical reading . It was the correlation coefficient but eventually found that too with .corr()

Regards
JB