{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import os\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "base_url = 'https://raw.githubusercontent.com/practical-jupyter/sample-data/master/anime/'\n", "t4816_csv = os.path.join(base_url, '4816.csv')" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
OpenHighLowCloseVolume
Date
2010-01-041600.01600.01580.01597.05600.0
2010-01-051597.01605.01590.01600.014800.0
2010-01-061600.01602.01579.01601.08300.0
2010-01-071600.01600.01590.01595.03700.0
2010-01-081599.01601.01595.01600.032300.0
\n", "
" ], "text/plain": [ " Open High Low Close Volume\n", "Date \n", "2010-01-04 1600.0 1600.0 1580.0 1597.0 5600.0\n", "2010-01-05 1597.0 1605.0 1590.0 1600.0 14800.0\n", "2010-01-06 1600.0 1602.0 1579.0 1601.0 8300.0\n", "2010-01-07 1600.0 1600.0 1590.0 1595.0 3700.0\n", "2010-01-08 1599.0 1601.0 1595.0 1600.0 32300.0" ] }, "execution_count": 5, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df = pd.read_csv(t4816_csv, index_col=0, parse_dates=['Date'])\n", "df.head()" ] }, { "cell_type": "code", "execution_count": null, "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.1" } }, "nbformat": 4, "nbformat_minor": 2 }