{"blog_url":"https://pika2.hatenablog.com/","published":"2021-03-10 11:24:31","width":"100%","version":"1.0","provider_name":"Hatena Blog","type":"rich","blog_title":"\u5341\u5206\u306b\u767a\u9054\u3057\u305f\u79d1\u5b66\u6280\u8853\u306f","title":"pandas\u3088\u304f\u4f7f\u3046\u6a5f\u80fd\u30e1\u30e2","categories":[],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpika2.hatenablog.com%2Fentry%2F2021%2F03%2F10%2F112431\" title=\"pandas\u3088\u304f\u4f7f\u3046\u6a5f\u80fd\u30e1\u30e2 - \u5341\u5206\u306b\u767a\u9054\u3057\u305f\u79d1\u5b66\u6280\u8853\u306f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"PIKA2","description":"\u2605DataFrame\u64cd\u4f5c import pandas as pd dict_test = [ { 'time': '2020', 'id': 1, 'name': 's1' }, { 'time': '2021', 'id': 2, 'name': 's2' } ] DataFrame\u4f5c\u6210 df_test = pd.DataFrame(dict_test) time id name0 2021 1 s11 2020 2 s2 \u5217\u3092index\u306b\u8a2d\u5b9a df_test = df_test.set_index('time') id nametime2021 1 s12020 2 s2 index\u3067so\u2026","url":"https://pika2.hatenablog.com/entry/2021/03/10/112431","author_url":"https://blog.hatena.ne.jp/PIKA2/","height":"190","provider_url":"https://hatena.blog","image_url":null}