{"id":3209,"date":"2021-01-26T21:30:50","date_gmt":"2021-01-26T12:30:50","guid":{"rendered":"https://freelance.indieverse.co.jp/media/?p=3209"},"modified":"2026-10-07T10:58:02","modified_gmt":"2026-10-07T01:58:02","slug":"python-csv","status":"publish","type":"post","link":"https://freelance.indieverse.co.jp/media/programming/python/python-csv","title":{"rendered":"PythonでCSVを扱う方法について解説してみた"},"content":{"rendered":"<p>こんにちは、Indieverse Freelance編集部のDAIです。</p>\n<p>今回は、PythonでCSVを扱う方法について解説したいと思います。</p>\n<h2>PythonでCSVを扱うためのライブラリ</h2>\n<p>PythonでCSVを扱うときに必要なのは、Pandasというライブラリです。</p>\n<h2>Pandasとは</h2>\n<p>Pandasとは、Excelのように、Python上で表計算を行うことができるライブラリです。</p>\n<p><strong>Pandasのインストール</strong></p>\n<p>以下のようにPandasをインストールします。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>$ pip install pandas</code></pre>\n</div>\n<p><strong>Pandasのインポート</strong></p>\n<p>Pandasをインポートします。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import pandas as pd</code></pre>\n</div>\n<p>こうすることで、pdでpandasを読み込めるようになります。</p>\n<p><strong>CSVの読み込み</strong></p>\n<p>PandasでCSVを読み込む場合は、read_csvを利用します。</p>\n<p>現在のディレクトリでCSVが存在する場合、読み込むことができます。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import pandas as pd\r\ndf = pd.read_csv(\"あなたのCSV名.csv\", index_col=0)</code></pre>\n</div>\n<p>dfはdataframeの略で、エクセルのように行列が配置されたオブジェクトとなります。</p>\n<p><strong>CSVの先頭行を確認する</strong></p>\n<p>読み込んだCSVの先頭行を確認します。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import pandas as pd\r\ndf = pd.read_csv(\"csv名.csv\")\r\ndf.head(50) #最初の50個を取得\r\n</code></pre>\n</div>\n<p>headメソッドは、表計算上のデータの先頭行を確認することができます。</p>\n<p><strong>CSVを出力する</strong></p>\n<p>この後いろいろとCSVに情報を追加する方法を追加しますが、CSVを出力する方法はto_csvメソッドを利用します。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import pandas as pd\r\n<span style=\"background-color: inherit; color: inherit;\">df = pd.read_csv(\"csv名.csv\")\r\ndf.to_csv(\"csv名.csv\") #csvを現在のディレクトリに保存する</span></code></pre>\n</div>\n<p><strong>簡単にCSVを作成してみる</strong></p>\n<p>次に、簡単にCSVを作成してみたいと思います。</p>\n<ul>\n<li>記事名（name）とURL (url)が入ったCSVリストを作成する</li>\n<li>それぞれ行を追加していく</li>\n</ul>\n<p>というワークをやってみます。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import pandas as pd \r\ncolumns = [\"name\", \"url\"]  #配列で列を指定する\r\ndf= pd.DataFrame(columns=columns) #列(columns)を引数に代入する</code></pre>\n</div>\n<p>これでdfには、列名が含まれたdataframeが作成されました。</p>\n<p><strong>CSVにデータを入れる</strong></p>\n<p>次に、</p>\n<ul>\n<li>name: 「100円セール」</li>\n<li>url: www.sample.com/sale</li>\n</ul>\n<p>という値をCSVに追加します。</p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>import pandas as pd \r\ncolumns = [\"name\", \"url\"]  #配列で列を指定する\r\ndf= pd.DataFrame(columns=columns) #列(columns)を引数に代入する\r\ncolumn = [\"100円セール\", \"www.sample.com/sale \"]\r\nse = <span>pd.Series(column, columns) # 行を作成する\r\ndf = df.append(se, columns) # 行をdataframeに追加する</span></code></pre>\n</div>\n<p>こんな感じでCSVに行を追加することができます。</p>\n<h2>データをネットから自動収集してCSVにエクスポートする</h2>\n<p>さて、次は発展編です。この記事では解説しませんが、データをネットから自動収集してCSVにエキスポートする方法については、以下の記事を参考にしてみてください。</p>\n<p><a href=\"https://freelance.indieverse.co.jp/media/python/python-scraping/\">≫【保存版】Pythonでスクレイピングする方法を初心者向けに徹底解説！【サンプルコードあり】</a></p>\n<h2>より本格的にPythonを学びたいなら</h2>\n<p>より本格的に、Pythonを学びたい場合にオススメなのが、Aidemyです。</p>\n<h2>Aidemy(アイデミー)の紹介</h2>\n<p>人工知能を学べるプログラミング学習サービス<strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>のご紹介をします。</p>\n<h3>Aidemy(アイデミー)とは？</h3>\n<p><img decoding=\"async\" class=\"alignnone wp-image-846 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy.png\" alt=\"Aidemyの公式HP\" width=\"1278\" height=\"500\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy.png 1278w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-300x117.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1024x401.png 1024w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-768x300.png 768w\" sizes=\"(max-width: 1278px) 100vw, 1278px\" /></p>\n<p><strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>は、<strong>人工知能特化型プログラミング学習サービス</strong>です</p>\n<ul></ul>\n<p>日本を代表するリーディングカンパニーにも、アイデミーの教材が法人研修で利用されています。</p>\n<ul></ul>\n<p><img decoding=\"async\" class=\"alignnone wp-image-847 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company.png\" alt=\"Aidemyを導入している企業\" width=\"1539\" height=\"563\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company.png 1539w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company-300x110.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company-1024x375.png 1024w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company-768x281.png 768w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/company-1536x562.png 1536w\" sizes=\"(max-width: 1539px) 100vw, 1539px\" /></p>\n<p><strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>の特徴としては、ほかのAIプログラミングスクールと異なり、現場でも使われるプロフェッショナルなスキルを学べます。根拠としては、</p>\n<ul>\n<li>東京大学発で、自動運転の世界的権威である、東大の加藤教授が監修</li>\n<li>早稲田大学・大手上場企業にもサービス提供を行っている</li>\n<li>アイデミーで学習した結果、実際にAIプロジェクトを回している企業もあり</li>\n</ul>\n<p>となっています。</p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h3>Aidemy（アイデミー）ってどんなプログラミングスクールなの？</h3>\n<p><strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>は、AIに特化したプログラミングスクールです。特徴としては、</p>\n<ul>\n<li>完全ネット完結で、どこでも受講できる唯一のAIプログラミングスクール</li>\n<li>24時間以内返信のチャットサポートで、困った時にいつでも質問ができる。課題の添削も実施。</li>\n<li>テレビ電話形式でのメンタリングサポートで、気になることはその場で即解決。</li>\n<li>Aidemyが提供する全16種類すべてのコースが受け放題。</li>\n</ul>\n<p>となっています。</p>\n<p>実際に受講者さんも、海外の方や、地方在住の人が多いです。</p>\n<p>今回インタビューしたJackさんも、もともと関西からAidemyを受講され、転職に成功されてから東京にいらっしゃいました。</p>\n<h4>24時間以内返信のチャットサポートで、困った時にいつでも質問ができる。課題の添削も実施。</h4>\n<p><img decoding=\"async\" class=\"alignnone wp-image-864 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/support.jpg\" alt=\"24時間以内返信のチャットサポートで、困った時にいつでも質問ができる。課題の添削も実施。\" width=\"1000\" height=\"600\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/support.jpg 1000w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/support-300x180.jpg 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/support-768x461.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></p>\n<p><strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>を受講すると、Slackページに参加することができます。そのSlackページでは、学習している際に質問やキャリア相談等も気軽に行うことができます。</p>\n<h4>テレビ電話形式でのメンタリングサポートで、気になることはその場で即解決。</h4>\n<p><img decoding=\"async\" class=\"alignnone wp-image-865 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/video.jpg\" alt=\"テレビ電話形式でのメンタリングサポートで、気になることはその場で即解決。\" width=\"1000\" height=\"600\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/video.jpg 1000w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/video-300x180.jpg 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/video-768x461.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></p>\n<p><strong><a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" target=\"_blank\" rel=\"nofollow noopener\">Aidemy(アイデミー)</a></strong>では、チャットサポートだけでは難しいような課題も、テレビ形式でのメンタリングサポートで解決することができます。</p>\n<p>例えば、「環境構築を自分でやってみたいけど、何から質問したらいいのかわからず困っている」ようなときってあると思うのですが、こういうときもサクッとテレビ電話形式のメンタリングサポートだと解決できちゃいますね。</p>\n<h4>Aidemyが提供する全16種類すべてのコースが受け放題。</h4>\n<p><img decoding=\"async\" class=\"alignnone wp-image-870 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1.png\" alt=\"Aidemyが提供する全16種類すべてのコースが受け放題。\" width=\"2560\" height=\"7649\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1.png 2560w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1-100x300.png 100w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1-343x1024.png 343w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1-768x2295.png 768w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1-514x1536.png 514w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/courses-1-685x2048.png 685w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" /></p>\n<p>Aidemy （アイデミー）を受講すると、Aidemy（オンライン上でAIを学ぶことができるWebサイト）のコースをすべて受け放題となります。</p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h2>Aidemy（アイデミー）ではどんなコースが学べるの？</h2>\n<ul></ul>\n<p>さて、アイデミーではどんなコースが学べるのでしょうか。中の人しか見れないコンテンツを、今回は公開してみたいと思います。</p>\n<h4>選べる5つのコース(2018/11月現在)</h4>\n<p>アイデミーで受講できるコースは、4つのコースがあります。</p>\n<ul>\n<li>データ分析コース</li>\n<li>自然言語処理コース</li>\n<li>AIアプリ開発コース</li>\n<li>カスタマイズコース</li>\n<li>LINE Bot開発コース</li>\n</ul>\n<p>順にご紹介しますね。</p>\n<h4>データ分析コース</h4>\n<p><img decoding=\"async\" class=\"alignnone wp-image-859 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/titanic.jpg\" alt=\"データ分析コース\" width=\"1000\" height=\"600\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/titanic.jpg 1000w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/titanic-300x180.jpg 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/titanic-768x461.jpg 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></p>\n<p>「データ分析コース」では、AIプログラミング未経験者でもデータ分析を筋道立てて学ぶことができ、自身で取得したデータから、統計分析や機械学習による予測モデルを作成することを最終目標としています。</p>\n<p>学習内容としては、以下のコンテンツを学習することができます。</p>\n<ul>\n<li>Python3基礎</li>\n<li>Pythonのデータの前処理ライブラリ「Pandas」</li>\n<li>Pythonのグラフ描画ライブラリ「Matplotlib」</li>\n<li>データスクレイピング／Web APIからのデータ取得</li>\n<li>機械学習概論</li>\n<li>教師あり学習（分類）</li>\n<li>教師あり学習（回帰）</li>\n<li>教師なし学習</li>\n<li>応用課題：タイタニック号の乗客データで機械学習を利用した生存率を予測</li>\n<li>最終課題：オリジナルデータを分析した統計解析記事</li>\n</ul>\n<p>データ分析コースでは、実際にWeb上のデータを収集して、データの前処理を行い、機械学習で予測モデルを組み立てるところから学習することができます。</p>\n<p>最後には、データ分析コンペであるKaggleで、データの前処理から予測モデルを立てるところまでを学習することができます。</p>\n<p>最後には実際に自分自身でオリジナルのデータを取得して、学習を進めることができるように、ゼロからデータ取得して、分析した結果を記事にして提出する課題を行います。</p>\n<p>オススメのポイントは、実際のデータを利用して、自分の環境で前処理を行い、分析する力をつけることができる点です。このコースを学ぶと、以下のことができるようになります。</p>\n<ul>\n<li>自分自身が持っているデータを、分析できる形に整形したい！</li>\n<li>自身のデータを分析して、よりビジネス的に有利なインサイトを見出したい！</li>\n<li>機会学習の見識が深まる</li>\n<li>データ分析の流れをゼロから学ぶことができる</li>\n</ul>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h4>自然言語処理コース</h4>\n<p><img decoding=\"async\" class=\"alignnone wp-image-861 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/自然言語.png\" alt=\"自然言語処理コース\" width=\"1000\" height=\"560\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/自然言語.png 1000w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/自然言語-300x168.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/自然言語-768x430.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></p>\n<p>「自然言語処理コース」は自然言語処理に特化したコースです。プログラミング未経験者でもPythonによるプログラミングの基礎から段階を踏んで学ぶことにより、最終的には自然言語処理を用いた統計的予測モデルの作成ができるようになることを目指します。さらに、オリジナルのデータを取得するスクレイピングから、自然言語処理を利用した株価予測までができるようになります。</p>\n<p>自然言語処理コースのカリキュラムは、</p>\n<ul>\n<li>Python3基礎</li>\n<li>Pythonのデータの前処理ライブラリ「Pandas」</li>\n<li>Pythonのグラフ描画ライブラリ「Matplotlib」</li>\n<li>データスクレイピング／Web APIからのデータ取得</li>\n<li>機械学習概論</li>\n<li>教師あり学習（分類）</li>\n<li>教師あり学習（回帰）</li>\n<li>自然言語処理</li>\n<li>応用課題： Twitterのデータから株価予測しよう</li>\n<li>最終課題： オリジナルデータから、株価予測しよう</li>\n</ul>\n<h4>AIアプリ開発コース</h4>\n<p><img decoding=\"async\" class=\"alignnone wp-image-860 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/ai.png\" alt=\"AIアプリ開発コース\" width=\"1000\" height=\"560\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/ai.png 1000w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/ai-300x168.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/ai-768x430.png 768w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" /></p>\n<p>「アプリ開発コース」は画像認識の機械学習に特化したコースです。プログラミング未経験者でもPythonによるプログラミングの基礎から段階を踏んで学ぶことにより、最終的には機械学習を用いた画像認識分野のコーディングができるようになることを目指します。さらに、作成したコードをアプリケーションとしてリリースする手順も学べるため、自分が作りたいアプリケーションを自由に作成できるようになります。</p>\n<p>学習内容としては、</p>\n<ul>\n<li>HTML</li>\n<li>CSS</li>\n<li>JavaScript</li>\n<li>jQuery</li>\n<li>ChartJS</li>\n<li>Flask</li>\n<li>ディープラーニングを用いた画像認識</li>\n<li>Heroku</li>\n<li>GitHub</li>\n</ul>\n<p>などと、Web系のプログラミングを学びつつ、かつディープラーニングを学べます。</p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h4>LINEチャットボット開発コース</h4>\n<p><img decoding=\"async\" class=\"alignnone wp-image-862 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/line.png\" alt=\"LINEチャットボット開発コース\" width=\"1200\" height=\"930\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/line.png 1200w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/line-300x233.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/line-1024x794.png 1024w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/line-768x595.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" /></p>\n<p>LINEチャットボット開発コースは画像認識技術とLINEチャットボットの開発に特化したコースです。プログラミング未経験者でも実践的なアプリケーション開発が比較的簡単なLINEチャットボットをマスターします。また、近年機械学習の中でも最も実務に応用されている分野である、画像認識技術を実装できるようになります。</p>\n<p>できるようになることとしては、</p>\n<ul>\n<li>LINE Messaging APIを使用してLINEチャットボットを作成できます。</li>\n<li>様々なAPIを駆使したLINEチャットボットを作成できます。</li>\n<li>CNNによる画像認識の実装を学ぶことができます。</li>\n<li>CNNを実装し、画像認識を行うLINEチャットボットを作成できます。</li>\n</ul>\n<p>学習内容は、</p>\n<ul>\n<li>Python3基礎</li>\n<li>NumPy</li>\n<li>Pandas</li>\n<li>データクレンジング</li>\n<li>データハンドリング</li>\n<li>機械学習概論</li>\n<li>教師あり学習(回帰)</li>\n<li>教師あり学習(分類)</li>\n<li>教師なし学習</li>\n<li>ディープラーニング基礎</li>\n<li>深層学習画像認識</li>\n<li>CNN</li>\n<li>男女画像認識</li>\n<li>LINEチャットボット基礎</li>\n</ul>\n<p>となっています。</p>\n<h4>基本的にすべて学べる「受け放題」のカスタマイズ制</h4>\n<p>アイデミーとほかの企業のサービスと根本的に異なるのは、「どのコースも受け放題」ということです。</p>\n<p>Aidemy （アイデミー）では、基本的には後述する5つのコースを選択して受講することになっています。</p>\n<p>しかし、そのコースの中でも余裕があれば、Aidemy （アイデミー）が提供するすべてのコースを受け放題となっています。もちろんどんなに多くのコースを受けても、料金はまったくかわりません。</p>\n<ul>\n<li>AIアプリ開発コースの内容と、自然言語処理コースの内容も両方学びたいなぁ</li>\n</ul>\n<p>ということも可能です。</p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<ul></ul>\n<h3>Aidemy(アイデミー)の学習ってどうやって進めるの？</h3>\n<p>アイデミーを受講する場合は、以下のステップにしたがって進めます。</p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-867 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ.png\" alt=\"Aidemy(アイデミー)の学習ってどうやって進めるの？\" width=\"1300\" height=\"2329\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ.png 1300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ-167x300.png 167w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ-572x1024.png 572w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ-768x1376.png 768w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ-857x1536.png 857w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/学習の流れ-1143x2048.png 1143w\" sizes=\"(max-width: 1300px) 100vw, 1300px\" /></p>\n<h4>まずは無料カウンセリング</h4>\n<p>まず、受講する前に無料カウンセリングを必ず受けます。</p>\n<ol>\n<li>日程を調整</li>\n<li>名前、メールアドレス、電話番号を入力</li>\n</ol>\n<p>で、30秒ほどでカウンセリング申し込みが完了します。</p>\n<p><img decoding=\"async\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1.png\" alt=\"まずは無料カウンセリング\" width=\"1920\" height=\"1418\" class=\"alignnone wp-image-2457 size-full\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1.png 1920w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1-300x222.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1-1024x756.png 1024w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1-768x567.png 768w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/aidemy-1-1536x1134.png 1536w\" sizes=\"(max-width: 1920px) 100vw, 1920px\" /></p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h2>Aidemyのメリット・デメリット</h2>\n<ul></ul>\n<p>Aidemyがほかのプログラミングスクールと比べてお勧めできるポイントとしては、以下の通りです。</p>\n<ol>\n<li>AIをがっつりと学ぶなら、Aidemyのコンテンツの質が高いのでよい</li>\n<li>完全オンラインなので、忙しくても受講できる</li>\n</ol>\n<p>一方で、Web系のエンジニアになりたいなら、また別のスクールを受講するのがおすすめです。</p>\n<p><a href=\"https://freelance.indieverse.co.jp/media/programming-school/recommended-programming-school/\">≫おすすめのプログラミングスクールを紹介します！【エンジニアになれたプログラミングスクール卒業生のインタビューあり】</a></p>\n<h2>Aidemyの料金は？</h2>\n<p>Aidemyの料金は、以下のようになっております。</p>\n<ul>\n<li>4週間プラン：199,980円</li>\n<li>8週間プラン：299,980円</li>\n<li>12週間プラン：389,980円</li>\n<li>16週間プラン：479,980円</li>\n</ul>\n<p>個人的には、エンジニアの場合は4週間プラン、非エンジニアの場合は8週間プラン以降がおすすめです。<br />\n現役のデータサイエンティストを雇っているので、相応の価格ですが、実際には最新の論文に対しての質問にも答えられるようになっています。</p>\n<h2>Aidemyの全額返金保証</h2>\n<p>Aidemyは、受講開始してから最初の14日以内であれば、全額返金保証ができます。</p>\n<blockquote><p>(2) Aidemy Premium Planを個人で購入される方<br />\n1. お客様都合のキャンセル<br />\nすべてのAidemy Premium Planコースがキャンセルの対象です。<br />\n受講開始日を含む14日以内に、Aidemy Premium Planで利用するチャットツールまたは support@aidemy.net 宛に返金を申し出てください。<br />\nクレジットカードで決済された場合は利用時のクレジットカードに全額返金します。銀行振込で決済された場合は指定の銀行口座に全額返金します。</p>\n<p>2. キャンセルを承らないケース<br />\nキャンセル申込の期限は受講開始日（当日を含む。）から14日間です。キャンセル期限を過ぎてからの返金はお受けいたしかねます。<br />\nまた、Aidemy Premium Planの申込とキャンセルを繰り返す行為が認められた場合には、返金をお断りすることがあります。</p></blockquote>\n<p><a href=\"https://aidemy.net/terms-of-service\">≫利用規約</a></p>\n<p>そのため、もし受講してみたら思ったものと全然違った！となれば、すぐにでもキャンセルすることができます。実際私が働いていた時も、急な出張などでどうしてもキャンセルしなければならないような場合は、全額返金保証を利用してキャンセルされている方もいらっしゃいました。</p>\n<p>アイデミーは基本的に柔軟に対応してくれると思いますので、安心です。詳しいことは無料カウンセリングでも聞くことができます。</p>\n<h2>Aidemyの講師は？</h2>\n<ul></ul>\n<p>Aidemyの講師は、現役データサイエンティストや、最先端の機械学習（音声認識、画像処理等）を研究している有名国立大学の院生などがいます。<br />\nそのため、</p>\n<ul>\n<li>最新の論文について教えてほしい</li>\n<li>データサイエンティストの面接には何をすればいいのか</li>\n</ul>\n<p>等について、質問することも可能です。</p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-965 size-full\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/チューター.png\" alt=\"Aidemyの講師は？\" width=\"808\" height=\"522\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/チューター.png 808w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/チューター-300x194.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/01/チューター-768x496.png 768w\" sizes=\"(max-width: 808px) 100vw, 808px\" /></p>\n<p>また、一人ひとりにパーソナルメンターが付き、一人ひとりの学習の進捗を確認しつつ、フィードバックしてくれます。</p>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<h2>Aidemyこんな人にオススメ</h2>\n<p>Aidemyは、</p>\n<ul>\n<li>完全にネット上で学習を完結したい、忙しい社会人</li>\n<li>実際に実務で使われる人工知能のスキルを身に着けたい方</li>\n</ul>\n<p>に、非常におすすめです。</p>\n<p>確かに料金はかなりお高めですが、実際にはかなり実務で使えるような技術がつきます。日本のリーディングカンパニーが研修で利用するAidemyの学習コースをもとに、</p>\n<ul>\n<li>人工知能が理解できるビジネスパーソンになりたい！</li>\n<li>人工知能が実装できるエンジニアになりたい！</li>\n</ul>\n<p>という方には、間違いなくおすすめできるサービスです。</p>\n<p>とはいえ、このページだけではわからないこともあると思うので、ぜひ<strong>無料カウンセリング</strong>でご不明点はご相談してみるとよいと思います！（Aidemyは「儲ける気があるのか？」と言われるほど、カウンセリングではしつこく勧誘しませんし、ニーズがあっていない場合は他社を紹介するような会社なので、ぜひご気軽にご相談ください笑）</p>\n<h3>Aidemy(アイデミー)</h3>\n<a href=\"https://af.moshimo.com/af/c/click?a_id=1079262&#038;p_id=1386&#038;pc_id=2364&#038;pl_id=20735&#038;guid=ON\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">Aidemyで無料カウンセリングを受けてみる</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n<p>注）この記事は記事広告です。<a href=\"https://freelance.indieverse.co.jp/media/affiliate-policy/\">アフィリエイト・ポリシー</a>に準じます。</p>\n<p>&nbsp;</p>\n<h2>Pythonを無料で学ぼう！ Indieverse Freelance公式チュートリアルを公開しました</h2>\n<p><a href=\"https://freelance.indieverse.co.jp/media/try-python-scraping-lp/\" rel=\"https://freelance.indieverse.co.jp/media/try-python-scraping-lp/\"><img decoding=\"async\" src=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2020/03/custom-–-1-2.png\" alt=\"Pythonを無料で学ぼう！ Indieverse Freelance公式チュートリアルを公開しました\" width=\"1080\" height=\"867\" class=\"alignnone wp-image-3368 size-full\" srcset=\"https://freelance.indieverse.co.jp/media/wp-content/uploads/2020/03/custom-–-1-2.png 1080w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2020/03/custom-–-1-2-300x241.png 300w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2020/03/custom-–-1-2-1024x822.png 1024w, https://freelance.indieverse.co.jp/media/wp-content/uploads/2020/03/custom-–-1-2-768x617.png 768w\" sizes=\"(max-width: 1080px) 100vw, 1080px\" /></a></p>\n<ul>\n<li>Pythonで簡単なアプリを開発してみたい</li>\n<li>でもまずは無料で勉強してみたい</li>\n<li>ただの基礎ではなく、応用が聴くような技術を身に付けたい</li>\n</ul>\n<p>という方向けに、Indieverse Freelance編集部が作成した、Pythonのチュートリアルを用意しました。</p>\n<p>まずは、簡単な技術で、プログラミングを楽しんでみませんか？</p>\n<a href=\"https://freelance.indieverse.co.jp/media/try-python-scraping-lp/\" class=\"cta\" rel=\"nofollow noopener\" target=\"_blank\"><span class=\"cta-text\">チュートリアルを見る（無料）</span><i class=\"fas fa-caret-right cta-caret\" aria-hidden=\"true\"></i></a>\n","protected":false},"excerpt":{"rendered":"<p>PythonでCSVを扱う基本を解説。初心者向けにpandasのインストールからread_csv/to_csv、DataFrame作成や行追加、先頭確認までサンプルコード付きで紹介します。</p>\n","protected":false},"author":1,"featured_media":3211,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[191],"tags":[],"class_list":["post-3209","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"PythonでCSVを扱う基本を解説。初心者向けにpandasのインストールからread_csv/to_csv、DataFrame作成や行追加、先頭確認までサンプルコード付きで紹介します。\" />\n\t<meta name=\"robots\" content=\"max-image-preview:large\" />\n\t<meta name=\"author\" content=\"DAI\"/>\n\t<link rel=\"canonical\" href=\"https://freelance.indieverse.co.jp/media/programming/python/python-csv\" />\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" />\n\t\t<meta property=\"og:locale\" content=\"ja_JP\" />\n\t\t<meta property=\"og:site_name\" content=\"インディバースフリーランスメディア - Indieverse Freelanceの公式メディアです\" />\n\t\t<meta property=\"og:type\" content=\"article\" />\n\t\t<meta property=\"og:title\" content=\"PythonでCSVを扱う方法について解説してみた - インディバースフリーランスメディア\" />\n\t\t<meta property=\"og:description\" content=\"PythonでCSVを扱う基本を解説。初心者向けにpandasのインストールからread_csv/to_csv、DataFrame作成や行追加、先頭確認までサンプルコード付きで紹介します。\" />\n\t\t<meta property=\"og:url\" content=\"https://freelance.indieverse.co.jp/media/programming/python/python-csv\" />\n\t\t<meta property=\"article:published_time\" content=\"2021-01-26T12:30:50+00:00\" />\n\t\t<meta property=\"article:modified_time\" content=\"2026-10-07T01:58:02+00:00\" />\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" />\n\t\t<meta name=\"twitter:title\" content=\"PythonでCSVを扱う方法について解説してみた - インディバースフリーランスメディア\" />\n\t\t<meta name=\"twitter:description\" content=\"PythonでCSVを扱う基本を解説。初心者向けにpandasのインストールからread_csv/to_csv、DataFrame作成や行追加、先頭確認までサンプルコード付きで紹介します。\" />\n\t\t<script type=\"application/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\/\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv#blogposting\",\"name\":\"Python\\u3067CSV\\u3092\\u6271\\u3046\\u65b9\\u6cd5\\u306b\\u3064\\u3044\\u3066\\u89e3\\u8aac\\u3057\\u3066\\u307f\\u305f - \\u30a4\\u30f3\\u30c7\\u30a3\\u30d0\\u30fc\\u30b9\\u30d5\\u30ea\\u30fc\\u30e9\\u30f3\\u30b9\\u30e1\\u30c7\\u30a3\\u30a2\",\"headline\":\"Python\\u3067CSV\\u3092\\u6271\\u3046\\u65b9\\u6cd5\\u306b\\u3064\\u3044\\u3066\\u89e3\\u8aac\\u3057\\u3066\\u307f\\u305f\",\"author\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/author\\/wpmaster#author\"},\"publisher\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\/\\/freelance.dividable.net\\/wp-content\\/uploads\\/2019\\/12\\/\\u30b5\\u30e0\\u30cd\\u30a4\\u30eb-7.png\",\"width\":960,\"height\":540,\"caption\":\"Python\\u3067CSV\\u3092\\u6271\\u3046\\u65b9\\u6cd5\\u306b\\u3064\\u3044\\u3066\\u89e3\\u8aac\\u3057\\u3066\\u307f\\u305f\"},\"datePublished\":\"2021-01-26T21:30:50+09:00\",\"dateModified\":\"2026-10-07T10:58:02+09:00\",\"inLanguage\":\"ja\",\"mainEntityOfPage\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv#webpage\"},\"isPartOf\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv#webpage\"},\"articleSection\":\"Python\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/#listItem\",\"position\":1,\"name\":\"\\u30db\\u30fc\\u30e0\",\"item\":\"https:\\/\\/freelance.dividable.net\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming#listItem\",\"position\":2,\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\",\"item\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming\\/python#listItem\",\"name\":\"Python\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/#listItem\",\"name\":\"\\u30db\\u30fc\\u30e0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming\\/python#listItem\",\"position\":3,\"name\":\"Python\",\"item\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming\\/python\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv#listItem\",\"name\":\"Python\\u3067CSV\\u3092\\u6271\\u3046\\u65b9\\u6cd5\\u306b\\u3064\\u3044\\u3066\\u89e3\\u8aac\\u3057\\u3066\\u307f\\u305f\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv#listItem\",\"position\":4,\"name\":\"Python\\u3067CSV\\u3092\\u6271\\u3046\\u65b9\\u6cd5\\u306b\\u3064\\u3044\\u3066\\u89e3\\u8aac\\u3057\\u3066\\u307f\\u305f\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/category\\/programming\\/python#listItem\",\"name\":\"Python\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/#organization\",\"name\":\"Indieverse Freelance\",\"description\":\"Indieverse Freelance\\u306e\\u516c\\u5f0f\\u30e1\\u30c7\\u30a3\\u30a2\\u3067\\u3059\",\"url\":\"https:\\/\\/freelance.dividable.net\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/author\\/wpmaster#author\",\"url\":\"https:\\/\\/freelance.dividable.net\\/author\\/wpmaster\",\"name\":\"DAI\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv#webpage\",\"url\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv\",\"name\":\"Python\\u3067CSV\\u3092\\u6271\\u3046\\u65b9\\u6cd5\\u306b\\u3064\\u3044\\u3066\\u89e3\\u8aac\\u3057\\u3066\\u307f\\u305f - \\u30a4\\u30f3\\u30c7\\u30a3\\u30d0\\u30fc\\u30b9\\u30d5\\u30ea\\u30fc\\u30e9\\u30f3\\u30b9\\u30e1\\u30c7\\u30a3\\u30a2\",\"description\":\"Python\\u3067CSV\\u3092\\u6271\\u3046\\u57fa\\u672c\\u3092\\u89e3\\u8aac\\u3002\\u521d\\u5fc3\\u8005\\u5411\\u3051\\u306bpandas\\u306e\\u30a4\\u30f3\\u30b9\\u30c8\\u30fc\\u30eb\\u304b\\u3089read_csv\\/to_csv\\u3001DataFrame\\u4f5c\\u6210\\u3084\\u884c\\u8ffd\\u52a0\\u3001\\u5148\\u982d\\u78ba\\u8a8d\\u307e\\u3067\\u30b5\\u30f3\\u30d7\\u30eb\\u30b3\\u30fc\\u30c9\\u4ed8\\u304d\\u3067\\u7d39\\u4ecb\\u3057\\u307e\\u3059\\u3002\",\"inLanguage\":\"ja\",\"isPartOf\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv#breadcrumblist\"},\"author\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/author\\/wpmaster#author\"},\"creator\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/author\\/wpmaster#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\/\\/freelance.dividable.net\\/wp-content\\/uploads\\/2019\\/12\\/\\u30b5\\u30e0\\u30cd\\u30a4\\u30eb-7.png\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv\\/#mainImage\",\"width\":960,\"height\":540,\"caption\":\"Python\\u3067CSV\\u3092\\u6271\\u3046\\u65b9\\u6cd5\\u306b\\u3064\\u3044\\u3066\\u89e3\\u8aac\\u3057\\u3066\\u307f\\u305f\"},\"primaryImageOfPage\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/programming\\/python\\/python-csv#mainImage\"},\"datePublished\":\"2021-01-26T21:30:50+09:00\",\"dateModified\":\"2026-10-07T10:58:02+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\/\\/freelance.dividable.net\\/#website\",\"url\":\"https:\\/\\/freelance.dividable.net\\/\",\"name\":\"\\u30a4\\u30f3\\u30c7\\u30a3\\u30d0\\u30fc\\u30b9\\u30d5\\u30ea\\u30fc\\u30e9\\u30f3\\u30b9\\u30e1\\u30c7\\u30a3\\u30a2\",\"description\":\"Indieverse Freelance\\u306e\\u516c\\u5f0f\\u30e1\\u30c7\\u30a3\\u30a2\\u3067\\u3059\",\"inLanguage\":\"ja\",\"publisher\":{\"@id\":\"https:\\/\\/freelance.dividable.net\\/#organization\"}}]}\n\t\t</script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"PythonでCSVを扱う方法について解説してみた - インディバースフリーランスメディア","description":"PythonでCSVを扱う基本を解説。初心者向けにpandasのインストールからread_csv/to_csv、DataFrame作成や行追加、先頭確認までサンプルコード付きで紹介します。","canonical_url":"https://freelance.indieverse.co.jp/media/programming/python/python-csv","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https://schema.org","@graph":[{"@type":"BlogPosting","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-csv#blogposting","name":"PythonでCSVを扱う方法について解説してみた - インディバースフリーランスメディア","headline":"PythonでCSVを扱う方法について解説してみた","author":{"@id":"https://freelance.indieverse.co.jp/media/author/wpmaster#author"},"publisher":{"@id":"https://freelance.indieverse.co.jp/media/#organization"},"image":{"@type":"ImageObject","url":"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/12/サムネイル-7.png","width":960,"height":540,"caption":"PythonでCSVを扱う方法について解説してみた"},"datePublished":"2021-01-26T21:30:50+09:00","dateModified":"2026-10-07T10:58:02+09:00","inLanguage":"ja","mainEntityOfPage":{"@id":"https://freelance.indieverse.co.jp/media/programming/python/python-csv#webpage"},"isPartOf":{"@id":"https://freelance.indieverse.co.jp/media/programming/python/python-csv#webpage"},"articleSection":"Python"},{"@type":"BreadcrumbList","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-csv#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/#listItem","position":1,"name":"ホーム","item":"https://freelance.indieverse.co.jp/media/","nextItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming#listItem","name":"プログラミング"}},{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming#listItem","position":2,"name":"プログラミング","item":"https://freelance.indieverse.co.jp/media/category/programming","nextItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming/python#listItem","name":"Python"},"previousItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/#listItem","name":"ホーム"}},{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming/python#listItem","position":3,"name":"Python","item":"https://freelance.indieverse.co.jp/media/category/programming/python","nextItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-csv#listItem","name":"PythonでCSVを扱う方法について解説してみた"},"previousItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming#listItem","name":"プログラミング"}},{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-csv#listItem","position":4,"name":"PythonでCSVを扱う方法について解説してみた","previousItem":{"@type":"ListItem","@id":"https://freelance.indieverse.co.jp/media/category/programming/python#listItem","name":"Python"}}]},{"@type":"Organization","@id":"https://freelance.indieverse.co.jp/media/#organization","name":"Indieverse Freelance","description":"Indieverse Freelanceの公式メディアです","url":"https://freelance.indieverse.co.jp/media/"},{"@type":"Person","@id":"https://freelance.indieverse.co.jp/media/author/wpmaster#author","url":"https://freelance.indieverse.co.jp/media/author/wpmaster","name":"DAI"},{"@type":"WebPage","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-csv#webpage","url":"https://freelance.indieverse.co.jp/media/programming/python/python-csv","name":"PythonでCSVを扱う方法について解説してみた - インディバースフリーランスメディア","description":"PythonでCSVを扱う基本を解説。初心者向けにpandasのインストールからread_csv/to_csv、DataFrame作成や行追加、先頭確認までサンプルコード付きで紹介します。","inLanguage":"ja","isPartOf":{"@id":"https://freelance.indieverse.co.jp/media/#website"},"breadcrumb":{"@id":"https://freelance.indieverse.co.jp/media/programming/python/python-csv#breadcrumblist"},"author":{"@id":"https://freelance.indieverse.co.jp/media/author/wpmaster#author"},"creator":{"@id":"https://freelance.indieverse.co.jp/media/author/wpmaster#author"},"image":{"@type":"ImageObject","url":"https://freelance.indieverse.co.jp/media/wp-content/uploads/2019/12/サムネイル-7.png","@id":"https://freelance.indieverse.co.jp/media/programming/python/python-csv/#mainImage","width":960,"height":540,"caption":"PythonでCSVを扱う方法について解説してみた"},"primaryImageOfPage":{"@id":"https://freelance.indieverse.co.jp/media/programming/python/python-csv#mainImage"},"datePublished":"2021-01-26T21:30:50+09:00","dateModified":"2026-10-07T10:58:02+09:00"},{"@type":"WebSite","@id":"https://freelance.indieverse.co.jp/media/#website","url":"https://freelance.indieverse.co.jp/media/","name":"インディバースフリーランスメディア","description":"Indieverse Freelanceの公式メディアです","inLanguage":"ja","publisher":{"@id":"https://freelance.indieverse.co.jp/media/#organization"}}]},"og:locale":"ja_JP","og:site_name":"インディバースフリーランスメディア - Indieverse Freelanceの公式メディアです","og:type":"article","og:title":"PythonでCSVを扱う方法について解説してみた - インディバースフリーランスメディア","og:description":"PythonでCSVを扱う基本を解説。初心者向けにpandasのインストールからread_csv/to_csv、DataFrame作成や行追加、先頭確認までサンプルコード付きで紹介します。","og:url":"https://freelance.indieverse.co.jp/media/programming/python/python-csv","article:published_time":"2021-01-26T12:30:50+00:00","article:modified_time":"2026-10-07T01:58:02+00:00","twitter:card":"summary_large_image","twitter:title":"PythonでCSVを扱う方法について解説してみた - インディバースフリーランスメディア","twitter:description":"PythonでCSVを扱う基本を解説。初心者向けにpandasのインストールからread_csv/to_csv、DataFrame作成や行追加、先頭確認までサンプルコード付きで紹介します。"},"aioseo_meta_data":{"post_id":"3209","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"summary_large_image","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"BlogPosting","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"limit_modified_date":false,"created":"2022-06-16 00:47:40","updated":"2025-09-09 01:15:45","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https://freelance.indieverse.co.jp/media/\" title=\"ホーム\">ホーム</a>\n\t\t</span><span class=\"aioseo-breadcrumb-separator\">»</span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https://freelance.indieverse.co.jp/media/category/programming\" title=\"プログラミング\">プログラミング</a>\n\t\t</span><span class=\"aioseo-breadcrumb-separator\">»</span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https://freelance.indieverse.co.jp/media/category/programming/python\" title=\"Python\">Python</a>\n\t\t</span><span class=\"aioseo-breadcrumb-separator\">»</span><span class=\"aioseo-breadcrumb\">\n\t\t\tPythonでCSVを扱う方法について解説してみた\n\t\t</span></div>","aioseo_breadcrumb_json":[{"label":"ホーム","link":"https://freelance.indieverse.co.jp/media/"},{"label":"プログラミング","link":"https://freelance.indieverse.co.jp/media/category/programming"},{"label":"Python","link":"https://freelance.indieverse.co.jp/media/category/programming/python"},{"label":"PythonでCSVを扱う方法について解説してみた","link":"https://freelance.indieverse.co.jp/media/programming/python/python-csv"}],"meta_description":"PythonでCSVを扱う基本を解説。初心者向けにpandasのインストールからread_csv/to_csv、DataFrame作成や行追加、先頭確認までサンプルコード付きで紹介します。","_links":{"self":[{"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/posts/3209","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/posts"}],"about":[{"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/types/post"}],"author":[{"embeddable":true,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/users/1"}],"replies":[{"embeddable":true,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/comments?post=3209"}],"version-history":[{"count":3,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/posts/3209/revisions"}],"predecessor-version":[{"id":98580,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/posts/3209/revisions/98580"}],"wp:featuredmedia":[{"embeddable":true,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/media/3211"}],"wp:attachment":[{"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/media?parent=3209"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/categories?post=3209"},{"taxonomy":"post_tag","embeddable":true,"href":"https://freelance.indieverse.co.jp/media/wp-json/wp/v2/tags?post=3209"}],"curies":[{"name":"wp","href":"https://api.w.org/{rel}","templated":true}]}}