{"width":"100%","url":"https://yoshitaku-jp.hatenablog.com/entry/2022/07/17/233000","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoshitaku-jp.hatenablog.com%2Fentry%2F2022%2F07%2F17%2F233000\" title=\"Pandas\u3067\u6b20\u640d\u5024\u3092\u57cb\u3081\u308b\u305f\u3081\u306e\u65b9\u6cd5 - \u3088\u3057\u305f\u304f blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Pandas\u3067\u6b20\u640d\u5024\u3092\u57cb\u3081\u308b\u305f\u3081\u306e\u65b9\u6cd5","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","description":"Pandas\u3067\u6b20\u640d\u5024\u3092\u57cb\u3081\u308b\u305f\u3081\u306e\u65b9\u6cd5\u3092\u3044\u304f\u3064\u304b\u78ba\u8a8d\u3057\u305f\u306e\u3067\u307e\u3068\u3081\u3066\u304a\u304f\u3002fillna\u95a2\u6570\u3092\u4f7f\u3046\u3068\u5f15\u6570\u306b\u6e21\u3057\u305f\u5024\u3067\u3001NaN\u3092\u57cb\u3081\u3089\u308c\u308b\u3002 \u307e\u305a\u306f\u9069\u5f53\u306bNaN\u3092\u542b\u3093\u3060\u30c7\u30fc\u30bf\u3092\u751f\u6210\u3059\u308b\u3002 import numpy as np import pandas as pd df = pd.DataFrame(data=[1,2,4,np.nan,5,8,7,np.nan], columns=['col_nan']) df index col_nan 0 1.0 1 2.0 2 4.0 3 NaN 4 5.0 5 8.0 6 7.0 7 NaN \u30bc\u30ed\u3067\u57cb\u3081\u308b fillna\u95a2\u6570\u3092\u4f7f\u3046\u3068\u5f15\u6570\u306b\u6e21\u3057\u305f\u3082\u306e\u3067\u3001Na\u2026","blog_title":"\u3088\u3057\u305f\u304f blog","height":"190","published":"2022-07-17 23:30:00","categories":["Python","Pandas"],"version":"1.0","image_url":null,"blog_url":"https://yoshitaku-jp.hatenablog.com/","author_name":"yoshitaku_jp","type":"rich","author_url":"https://blog.hatena.ne.jp/yoshitaku_jp/"}