<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nekoyukimmm</author_name>
  <author_url>https://blog.hatena.ne.jp/nekoyukimmm/</author_url>
  <blog_title>ねこゆきのメモ</blog_title>
  <blog_url>https://nekoyukimmm.hatenablog.com/</blog_url>
  <categories>
    <anon>pandas</anon>
    <anon>Python</anon>
  </categories>
  <description>列/カラムcolumnを削除deleteする。 delだと思ったてけど、.drop()が使えるらしい。 In [1]: import pandas as pd In [2]: df = pd.DataFrame({'a':[1,2,3],'b':[4,5,6],'c':[7,8,9]}) In [3]: df Out[3]: a b c 0 1 4 7 1 2 5 8 2 3 6 9 delの場合。 In [4]: df2 = df.copy() In [7]: del df2['a'] In [8]: df2 Out[8]: b c 0 4 7 1 5 8 2 6 9 .drop()の場合。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnekoyukimmm.hatenablog.com%2Fentry%2F2016%2F05%2F15%2F222004&quot; title=&quot;&amp;lt;Python, pandas&amp;gt; カラムを削除する。 - ねこゆきのメモ&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-15 22:20:04</published>
  <title>&lt;Python, pandas&gt; カラムを削除する。</title>
  <type>rich</type>
  <url>https://nekoyukimmm.hatenablog.com/entry/2016/05/15/222004</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
