Jupyter Notebooks

Intro to Fully documented code.

Jupyter (formerly IPython Notebook) is an open-source project that lets you easily combine Markdown text and executable Python source code on one canvas called a notebook.

Shortcuts

Introduction

Anaconda Project and Anaconda Navigator

anaconda.com

Visual Studio Code

Visual Studio Code supports working with Jupyter Notebooks natively, and through Python code files.

Hello World Examples

Variables and Types

User Defined Function and Document String

Pandas

Provides two new data types for storing data:

Pandas also has SQL-like functions for merging, joining, and sorting dataframes.

Analysis

Load Dataset

CFA Notes: This is a potential column that should be changed to a category.

Visualization

Plotting Univariate Distributions

The most convenient way to take a quick look at a univriate distribution in seaborn is the distplot() function. By default, this will draw a histogram and fit a kernel density estimate (KDE).

Plotting bivariate distributions

Useful to visualize a relationship between two variables.