<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>soratokimitonoaidani</author_name>
  <author_url>https://blog.hatena.ne.jp/soratokimitonoaidani/</author_url>
  <blog_title>子供の落書き帳 Renaissance</blog_title>
  <blog_url>https://linus-mk.hatenablog.com/</blog_url>
  <categories>
    <anon>Matplotlib</anon>
    <anon>pandas</anon>
    <anon>Python</anon>
    <anon>エラー対処法</anon>
  </categories>
  <description>[pandas/matplotlib] 時系列データをプロットするときはデータ型に注意 pandasで時系列データを作って、matplotlibでプロットするときにエラーが出たけど、調べてみたらデータ型（dtype）を間違えていたせいだった。 時系列データのデータ型には気をつけましょう。 という話のメモ。 準備 失敗例 axvspanを実行するとエラーになった 結果には2つの問題点がある。原因は共通で、データ型が不適切だった。 対処法：日付を扱うためのデータ型に変換する 時系列データをのグラフで、axvspan、axvlineを使う 準備 import datetime import pand…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flinus-mk.hatenablog.com%2Fentry%2Ftime_series_data_pandas_dtype&quot; title=&quot;［pandas/matplotlib］時系列データをプロットするときはデータ型に注意 - 子供の落書き帳 Renaissance&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/s/soratokimitonoaidani/20210718/20210718124026.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-07-18 12:43:44</published>
  <title>［pandas/matplotlib］時系列データをプロットするときはデータ型に注意</title>
  <type>rich</type>
  <url>https://linus-mk.hatenablog.com/entry/time_series_data_pandas_dtype</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
