Last active
August 7, 2021 02:17
-
-
Save hsteinshiromoto/88d6d67ca10927de15501b4239fde8f2 to your computer and use it in GitHub Desktop.
Header Template for and EDA Jupyter Notebook
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"**Abstract**." | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"# Import" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Modules" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 6, | |
"metadata": { | |
"scrolled": true | |
}, | |
"outputs": [ | |
{ | |
"name": "stdout", | |
"output_type": "stream", | |
"text": [ | |
"The autoreload extension is already loaded. To reload it, use:\n", | |
" %reload_ext autoreload\n" | |
] | |
} | |
], | |
"source": [ | |
"%load_ext autoreload\n", | |
"%autoreload 2\n", | |
"%load_ext watermark\n", | |
"%watermark -n -u -v -iv -w\n", | |
"\n", | |
"#Science and Data\n", | |
"import pandas as pd\n", | |
"import numpy as np\n", | |
"\n", | |
"# Infrastructure\n", | |
"from pathlib import Path\n", | |
"import sys\n", | |
"import os\n", | |
"\n", | |
"#Plotting Tools\n", | |
"import seaborn as sns\n", | |
"import matplotlib.pyplot as plt" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Setup options" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 5, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"# Pandas\n", | |
"pd.set_option('display.max_rows', 100)\n", | |
"\n", | |
"# Matplotlib\n", | |
"%matplotlib inline\n", | |
"plt.rcParams['figure.figsize'] = (20, 10)\n", | |
"plt.rcParams['axes.spines.left'] = False\n", | |
"plt.rcParams['axes.spines.right'] = False\n", | |
"plt.rcParams['axes.spines.top'] = False\n", | |
"plt.rcParams['axes.spines.bottom'] = False\n", | |
"plt.rcParams['xtick.bottom'] = False\n", | |
"plt.rcParams['xtick.labelbottom'] = True\n", | |
"plt.rcParams['ytick.labelleft'] = True\n", | |
"plt.rcParams.update({'font.size': 18})" | |
] | |
}, | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"Setup Paths" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": 7, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"PROJECT_ROOT = !git rev-parse --show-toplevel\n", | |
"PROJECT_ROOT = Path(PROJECT_ROOT[0])" | |
] | |
}, | |
{ | |
"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.7.3" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment