阅读背景:

如何使用Python Pandas在特定切片中制作一片DataFrame和“fillna”?

来源:互联网 

The problem: let us take Titanic dataset from Kaggle. I have dataframe with columns "Pclass", "Sex" and "Age". I need to fill NaN in column "Age" with a median for certain group. If it is a woman from 1st class, I would like to fill her age with the median for 1st class women, not with the median for whole Age column.The problem: let us take Titanic dataset from K




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: