<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>HK29</author_name>
  <author_url>https://blog.hatena.ne.jp/HK29/</author_url>
  <blog_title>PythonとVBAで世の中を便利にする</blog_title>
  <blog_url>https://hk29.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>抽出</anon>
    <anon>置換</anon>
    <anon>pandas</anon>
  </categories>
  <description>'20/08/13更新：読みづらかったので、記事構成を編集しました。 下図のように、行方向にデータが並んでいるcsvファイルがあるとします。1列目はインデックス名、２列目以降は各行の数値データです。このデータをpandasで読み込んでリストに格納したり、別ファイル内の文字列と置換する雛形コードを載せました。 本コードの動作仕様について説明します。上記とは別のテキストファイルである下図左の「@TAGET@」の行を下図右のように書き換えます。 ▼本プログラム #!/usr/bin/env python3 # -*- coding: utf-8 -*- import os, sys, shutil …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhk29.hatenablog.jp%2Fentry%2F2018%2F07%2F07%2F163327&quot; title=&quot;Python 各行データをリスト化し、そのリストを用いて別ファイル内の指定文字列を置換する方法 - PythonとVBAで世の中を便利にする&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/H/HK29/20180707/20180707155042.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2018-07-07 16:33:27</published>
  <title>Python 各行データをリスト化し、そのリストを用いて別ファイル内の指定文字列を置換する方法</title>
  <type>rich</type>
  <url>https://hk29.hatenablog.jp/entry/2018/07/07/163327</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
