{"description":"\u6b20\u640d\u5024\u306e\u88dc\u5b8c\u3092\u3059\u308b\u969b\u306b\u30b0\u30eb\u30fc\u30d7\u6bce\u306b\u5e73\u5747\u5024\u3092\u8a08\u7b97\u3057\u3001\u305d\u306e\u5024\u3067\u88dc\u5b8c\u3057\u305f\u3044\u3068\u3044\u3046\u5834\u5408\u3002\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u300cValueError: Length mismatch\u300d\u30a8\u30e9\u30fc\u304c\u3067\u305f\u3002 f = lambda x: x.fillna(x.mean()) df['Age'] = df.groupby('Group')['Age'].transform(f) \u539f\u56e0\u306fAge\u5217\u306bNaN\u304c\u5165\u3063\u3066\u3044\u308b\u884c\u304c\u3042\u3063\u305f\u305f\u3081\u3002 \u305d\u3053\u3092\u5024\u3067\u88dc\u5b8c\u3057\u3066\u3084\u308b\u3068\u76f4\u3063\u305f\u3002","author_url":"https://blog.hatena.ne.jp/anton0825/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F2016%2F07%2F21%2F000000\" title=\"pandas\u306etransform\u30e1\u30bd\u30c3\u30c9\u3067\u300cValueError: Length mismatch\u300d\u30a8\u30e9\u30fc - \u65e5\u3005\u7cbe\u9032\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://anton0825.hatenablog.com/","url":"https://anton0825.hatenablog.com/entry/2016/07/21/000000","type":"rich","published":"2016-07-21 00:00:00","title":"pandas\u306etransform\u30e1\u30bd\u30c3\u30c9\u3067\u300cValueError: Length mismatch\u300d\u30a8\u30e9\u30fc","provider_name":"Hatena Blog","blog_title":"\u65e5\u3005\u7cbe\u9032","version":"1.0","author_name":"anton0825","categories":["AI"],"height":"190","provider_url":"https://hatena.blog","image_url":null,"width":"100%"}