<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>goodbyegangster</author_name>
  <author_url>https://blog.hatena.ne.jp/goodbyegangster/</author_url>
  <blog_title>goodbyegangsterのブログ</blog_title>
  <blog_url>https://goodbyegangster.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>以下の前回の続きです。 csvファイルをpandasに取り込む - goodbyegangsterのブログ 取り込んだドル円日足データをもとに、２５日単純移動平均の乖離率を求めたいと思います。pandasけっこう便利なんで驚きました。 初めに、csvファイルをpandasに取り込みます。 &gt;&gt;&gt; import pandas &gt;&gt;&gt; df = pandas.read_csv(&quot;./USDJPY.csv&quot;) 作成したデータフレームに、計算結果のカラムを新規で追加してあげます。右辺が計算式ですね。 &gt;&gt;&gt; df['２５日移動平均'] = df['終値'].rolling(window=25).mea…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgoodbyegangster.hatenablog.com%2Fentry%2F2016%2F12%2F15%2F000248&quot; title=&quot;pandasで移動平均乖離率を求める - goodbyegangsterのブログ&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-12-15 00:02:48</published>
  <title>pandasで移動平均乖離率を求める</title>
  <type>rich</type>
  <url>https://goodbyegangster.hatenablog.com/entry/2016/12/15/000248</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
