<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>round-rand</author_name>
  <author_url>https://blog.hatena.ne.jp/round-rand/</author_url>
  <blog_title>ランドML</blog_title>
  <blog_url>https://ml-rand-note.hatenablog.com/</blog_url>
  <categories>
    <anon>Pandas</anon>
  </categories>
  <description>指定した行を削除(index指定で削除) データの準備 実装方法 指定した列を削除(columns指定で削除) データの準備 実装方法 指定した行を削除(index指定で削除) データの準備 import pandas as pd # データを用意 df = pd.DataFrame({ 'ID': [1, 2, 3], 'Name': ['Oda', 'Toyotomi', 'Hashiba'], 'Age': [40, 35, 25], }).set_index('ID') # 表示 df 実装方法 概要 df.drop(index名) によりindex指定で行を削除できます。 ソースコー…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Fpandas-drop&quot; title=&quot;Pandas 指定した行や列を削除(drop関数) - ランドML&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/r/round-rand/20240906/20240906210456.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-09-23 00:00:00</published>
  <title>Pandas 指定した行や列を削除(drop関数)</title>
  <type>rich</type>
  <url>https://ml-rand-note.hatenablog.com/entry/pandas-drop</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
