Skip to content

Commit bd2418d

Browse files
authored
Initial commit
0 parents  commit bd2418d

8 files changed

+386
-0
lines changed

Diff for: .gitignore

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
.python-version
86+
87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
94+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95+
__pypackages__/
96+
97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
.dmypy.json
126+
dmypy.json
127+
128+
# Pyre type checker
129+
.pyre/

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Data For Science
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# AdvancedTimeseries

Diff for: Untitled.ipynb

+187
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"<div style=\"width: 100%; overflow: hidden;\">\n",
8+
" <div style=\"width: 150px; float: left;\"> <img src=\"data/D4Sci_logo_ball.png\" alt=\"Data For Science, Inc\" align=\"left\" border=\"0\"> </div>\n",
9+
" <div style=\"float: left; margin-left: 10px;\"> <h1>Course</h1>\n",
10+
"<h1>Lecture</h1>\n",
11+
" <p>Bruno Gonçalves<br/>\n",
12+
" <a href=\"http://www.data4sci.com/\">www.data4sci.com</a><br/>\n",
13+
" @bgoncalves, @data4sci</p></div>\n",
14+
"</div>"
15+
]
16+
},
17+
{
18+
"cell_type": "code",
19+
"execution_count": 1,
20+
"metadata": {},
21+
"outputs": [],
22+
"source": [
23+
"from collections import Counter\n",
24+
"from pprint import pprint\n",
25+
"\n",
26+
"import pandas as pd\n",
27+
"import numpy as np\n",
28+
"import matplotlib.pyplot as plt \n",
29+
"\n",
30+
"import watermark\n",
31+
"\n",
32+
"%load_ext watermark\n",
33+
"%matplotlib inline"
34+
]
35+
},
36+
{
37+
"cell_type": "markdown",
38+
"metadata": {},
39+
"source": [
40+
"We start by print out the versions of the libraries we're using for future reference"
41+
]
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": 2,
46+
"metadata": {},
47+
"outputs": [
48+
{
49+
"name": "stdout",
50+
"output_type": "stream",
51+
"text": [
52+
"autopep8 1.5\n",
53+
"numpy 1.18.1\n",
54+
"json 2.0.9\n",
55+
"pandas 1.0.1\n",
56+
"watermark 2.0.2\n",
57+
"Mon May 11 2020 \n",
58+
"\n",
59+
"CPython 3.7.3\n",
60+
"IPython 6.2.1\n",
61+
"\n",
62+
"compiler : Clang 4.0.1 (tags/RELEASE_401/final)\n",
63+
"system : Darwin\n",
64+
"release : 19.4.0\n",
65+
"machine : x86_64\n",
66+
"processor : i386\n",
67+
"CPU cores : 8\n",
68+
"interpreter: 64bit\n",
69+
"Git hash : f06693032ded22cc83a4db4c4a7a590c1fa4bc94\n"
70+
]
71+
}
72+
],
73+
"source": [
74+
"%watermark -n -v -m -g -iv"
75+
]
76+
},
77+
{
78+
"cell_type": "markdown",
79+
"metadata": {},
80+
"source": [
81+
"Load default figure style"
82+
]
83+
},
84+
{
85+
"cell_type": "code",
86+
"execution_count": 3,
87+
"metadata": {},
88+
"outputs": [],
89+
"source": [
90+
"plt.style.use('./d4sci.mplstyle')"
91+
]
92+
},
93+
{
94+
"cell_type": "markdown",
95+
"metadata": {},
96+
"source": [
97+
"# Start"
98+
]
99+
},
100+
{
101+
"cell_type": "code",
102+
"execution_count": null,
103+
"metadata": {},
104+
"outputs": [],
105+
"source": []
106+
},
107+
{
108+
"cell_type": "markdown",
109+
"metadata": {},
110+
"source": [
111+
"<div style=\"width: 100%; overflow: hidden;\">\n",
112+
" <img src=\"data/D4Sci_logo_full.png\" alt=\"Data For Science, Inc\" align=\"center\" border=\"0\" width=300px> \n",
113+
"</div>"
114+
]
115+
},
116+
{
117+
"cell_type": "code",
118+
"execution_count": null,
119+
"metadata": {},
120+
"outputs": [],
121+
"source": []
122+
}
123+
],
124+
"metadata": {
125+
"kernelspec": {
126+
"display_name": "Python 3",
127+
"language": "python",
128+
"name": "python3"
129+
},
130+
"language_info": {
131+
"codemirror_mode": {
132+
"name": "ipython",
133+
"version": 3
134+
},
135+
"file_extension": ".py",
136+
"mimetype": "text/x-python",
137+
"name": "python",
138+
"nbconvert_exporter": "python",
139+
"pygments_lexer": "ipython3",
140+
"version": "3.7.3"
141+
},
142+
"toc": {
143+
"base_numbering": 1,
144+
"nav_menu": {},
145+
"number_sections": true,
146+
"sideBar": true,
147+
"skip_h1_title": true,
148+
"title_cell": "Table of Contents",
149+
"title_sidebar": "Contents",
150+
"toc_cell": false,
151+
"toc_position": {},
152+
"toc_section_display": true,
153+
"toc_window_display": false
154+
},
155+
"varInspector": {
156+
"cols": {
157+
"lenName": 16,
158+
"lenType": 16,
159+
"lenVar": 40
160+
},
161+
"kernels_config": {
162+
"python": {
163+
"delete_cmd_postfix": "",
164+
"delete_cmd_prefix": "del ",
165+
"library": "var_list.py",
166+
"varRefreshCmd": "print(var_dic_list())"
167+
},
168+
"r": {
169+
"delete_cmd_postfix": ") ",
170+
"delete_cmd_prefix": "rm(",
171+
"library": "var_list.r",
172+
"varRefreshCmd": "cat(var_dic_list()) "
173+
}
174+
},
175+
"types_to_exclude": [
176+
"module",
177+
"function",
178+
"builtin_function_or_method",
179+
"instance",
180+
"_Feature"
181+
],
182+
"window_display": false
183+
}
184+
},
185+
"nbformat": 4,
186+
"nbformat_minor": 2
187+
}

Diff for: d4sci.mplstyle

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# Data For Science style
2+
# Author: Bruno Goncalves <[email protected]>
3+
# Modified from the matplotlib FiveThirtyEight style by
4+
# Author: Cameron Davidson-Pilon, replicated styles from FiveThirtyEight.com
5+
# See https://www.dataorigami.net/blogs/fivethirtyeight-mpl
6+
7+
lines.linewidth: 4
8+
lines.solid_capstyle: butt
9+
10+
legend.fancybox: true
11+
12+
axes.prop_cycle: cycler('color', ['51a7f9', 'cf51f9', '70bf41', 'f39019', 'f9e351', 'f9517b', '6d904f', '8b8b8b','810f7c'])
13+
14+
axes.labelsize: large
15+
axes.axisbelow: true
16+
axes.grid: true
17+
axes.edgecolor: f0f0f0
18+
axes.linewidth: 3.0
19+
axes.titlesize: x-large
20+
21+
patch.edgecolor: f0f0f0
22+
patch.linewidth: 0.5
23+
24+
svg.fonttype: path
25+
26+
grid.linestyle: -
27+
grid.linewidth: 1.0
28+
29+
xtick.major.size: 0
30+
xtick.minor.size: 0
31+
ytick.major.size: 0
32+
ytick.minor.size: 0
33+
34+
font.size: 24.0
35+
36+
savefig.edgecolor: f0f0f0
37+
savefig.facecolor: f0f0f0
38+
39+
figure.subplot.left: 0.08
40+
figure.subplot.right: 0.95
41+
figure.subplot.bottom: 0.07
42+
figure.figsize: 12.8, 8.8
43+
figure.autolayout: True
44+
figure.dpi: 300

Diff for: data/D4Sci_logo_ball.png

45.3 KB
Loading

Diff for: data/D4Sci_logo_full.png

70.9 KB
Loading

Diff for: requirements.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
matplotlib==3.1.3
2+
numpy==1.18.1
3+
pandas==1.0.1
4+
watermark==2.0.2

0 commit comments

Comments
 (0)