{ "cells": [ { "cell_type": "code", "execution_count": 11, "metadata": { "executionInfo": { "elapsed": 683, "status": "ok", "timestamp": 1605664632069, "user": { "displayName": "キノコンタクト", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GhMzkidwFSeDbcRoHKuTIocxLdZSt8Qd_99WSc6=s64", "userId": "12567156059473232186" }, "user_tz": -540 }, "id": "FXTN7UFBtmpO" }, "outputs": [], "source": [ "from pandas_datareader import data\n", "import pandas as pd\n", "import matplotlib.pyplot as plt\n", "%matplotlib inline" ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "executionInfo": { "elapsed": 1100, "status": "ok", "timestamp": 1605664632674, "user": { "displayName": "キノコンタクト", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GhMzkidwFSeDbcRoHKuTIocxLdZSt8Qd_99WSc6=s64", "userId": "12567156059473232186" }, "user_tz": -540 }, "id": "t1HcvFTNtmpX" }, "outputs": [], "source": [ "start = '2019-11-01'\n", "end = '2020-11-01'\n", "\n", "df = data.DataReader('^N225','yahoo', start, end) " ] }, { "cell_type": "code", "execution_count": 13, "metadata": { "colab": { "base_uri": "https://localhost:8080/", "height": 373 }, "executionInfo": { "elapsed": 906, "status": "ok", "timestamp": 1605664632677, "user": { "displayName": "キノコンタクト", "photoUrl": "https://lh3.googleusercontent.com/a-/AOh14GhMzkidwFSeDbcRoHKuTIocxLdZSt8Qd_99WSc6=s64", "userId": "12567156059473232186" }, "user_tz": -540 }, "id": "tm5uxtVQtmpc", "outputId": "8a889d2f-9e0f-416f-a722-62abeda211d2" }, "outputs": [ { "data": { "text/html": [ "
\n", " | High | \n", "Low | \n", "Open | \n", "Close | \n", "Volume | \n", "Adj Close | \n", "
---|---|---|---|---|---|---|
Date | \n", "\n", " | \n", " | \n", " | \n", " | \n", " | \n", " |
2019-11-01 | \n", "22852.720703 | \n", "22705.599609 | \n", "22730.490234 | \n", "22850.769531 | \n", "65400 | \n", "22850.769531 | \n", "
2019-11-05 | \n", "23328.519531 | \n", "23090.939453 | \n", "23118.789062 | \n", "23251.990234 | \n", "102100 | \n", "23251.990234 | \n", "
2019-11-06 | \n", "23352.560547 | \n", "23246.570312 | \n", "23343.509766 | \n", "23303.820312 | \n", "77400 | \n", "23303.820312 | \n", "
2019-11-07 | \n", "23336.000000 | \n", "23253.320312 | \n", "23283.140625 | \n", "23330.320312 | \n", "70900 | \n", "23330.320312 | \n", "
2019-11-08 | \n", "23591.089844 | \n", "23313.410156 | \n", "23550.039062 | \n", "23391.869141 | \n", "94600 | \n", "23391.869141 | \n", "
2019-11-11 | \n", "23471.820312 | \n", "23323.019531 | \n", "23422.130859 | \n", "23331.839844 | \n", "61500 | \n", "23331.839844 | \n", "
2019-11-12 | \n", "23545.699219 | \n", "23312.250000 | \n", "23336.369141 | \n", "23520.009766 | \n", "63000 | \n", "23520.009766 | \n", "
2019-11-13 | \n", "23452.630859 | \n", "23270.929688 | \n", "23439.250000 | \n", "23319.869141 | \n", "63400 | \n", "23319.869141 | \n", "
2019-11-14 | \n", "23360.060547 | \n", "23062.160156 | \n", "23325.500000 | \n", "23141.550781 | \n", "79900 | \n", "23141.550781 | \n", "
2019-11-15 | \n", "23340.769531 | \n", "23121.589844 | \n", "23160.529297 | \n", "23303.320312 | \n", "72200 | \n", "23303.320312 | \n", "