{"categories":["Pandas"],"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Fpandas-drop\" title=\"Pandas \u6307\u5b9a\u3057\u305f\u884c\u3084\u5217\u3092\u524a\u9664(drop\u95a2\u6570) - \u30e9\u30f3\u30c9ML\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","title":"Pandas \u6307\u5b9a\u3057\u305f\u884c\u3084\u5217\u3092\u524a\u9664(drop\u95a2\u6570)","description":"\u6307\u5b9a\u3057\u305f\u884c\u3092\u524a\u9664(index\u6307\u5b9a\u3067\u524a\u9664) \u30c7\u30fc\u30bf\u306e\u6e96\u5099 \u5b9f\u88c5\u65b9\u6cd5 \u6307\u5b9a\u3057\u305f\u5217\u3092\u524a\u9664(columns\u6307\u5b9a\u3067\u524a\u9664) \u30c7\u30fc\u30bf\u306e\u6e96\u5099 \u5b9f\u88c5\u65b9\u6cd5 \u6307\u5b9a\u3057\u305f\u884c\u3092\u524a\u9664(index\u6307\u5b9a\u3067\u524a\u9664) \u30c7\u30fc\u30bf\u306e\u6e96\u5099 import pandas as pd # \u30c7\u30fc\u30bf\u3092\u7528\u610f df = pd.DataFrame({ 'ID': [1, 2, 3], 'Name': ['Oda', 'Toyotomi', 'Hashiba'], 'Age': [40, 35, 25], }).set_index('ID') # \u8868\u793a df \u5b9f\u88c5\u65b9\u6cd5 \u6982\u8981 df.drop(index\u540d) \u306b\u3088\u308aindex\u6307\u5b9a\u3067\u884c\u3092\u524a\u9664\u3067\u304d\u307e\u3059\u3002 \u30bd\u30fc\u30b9\u30b3\u30fc\u2026","url":"https://ml-rand-note.hatenablog.com/entry/pandas-drop","provider_url":"https://hatena.blog","width":"100%","published":"2024-09-23 00:00:00","version":"1.0","provider_name":"Hatena Blog","author_name":"round-rand","blog_title":"\u30e9\u30f3\u30c9ML","type":"rich","author_url":"https://blog.hatena.ne.jp/round-rand/","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/r/round-rand/20240906/20240906210456.png","blog_url":"https://ml-rand-note.hatenablog.com/"}