<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>delma</author_name>
  <author_url>https://blog.hatena.ne.jp/delma/</author_url>
  <blog_title>Take Your Time</blog_title>
  <blog_url>https://delma.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>概要 Pythonでイテレーションしてみた。クソむずかった。 やりたかったこと ある特定の日付からの秒数が入ったカラムを実際の日時時刻にしたい。 手順 まず、起点となる日時をstart_pointにdatetime型で入れる。この場合、2017年8月26日0時0分0秒。 次にデータフレームdt_trainのcreated_atに時間を変更して入れる。 datetime.timedeltaへの引数にintをかますのがポイント。そのままだと受け入れてくれない。 なおwariningが発生する模様。 import pandas as pd import numpy as np import date…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdelma.hatenablog.com%2Fentry%2F2017%2F11%2F26%2F002415&quot; title=&quot;イテレーション、forloop、時間の扱い - Take Your Time&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>2017-11-26 00:24:15</published>
  <title>イテレーション、forloop、時間の扱い</title>
  <type>rich</type>
  <url>https://delma.hatenablog.com/entry/2017/11/26/002415</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
