# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# ![data-x](http://oi64.tinypic.com/o858n4.jpg)
#
# ---
# # Breakout - Plotting w Matplotlib
#
# **Author list:** <NAME>
#
# **Source:** AY250, UC Berkeley
#
# **License Agreement:** Feel free to do whatever you want with this code

# ---
# Download the folder with breakout notebook, image and data here:
#
# # [Link to breakout material](https://www.dropbox.com/s/84hbb5lgichubor/breakout-L4.zip?dl=1)
#
# ---
#
# ## or
# #### clone / pull the latest version of the Data-X Github repo: https://github.com/ikhlaqsidhu/data-x

# ---
#
# The data files are called: 
#
# `google_data.txt, ny_temps.txt & yahoo_data.txt`,
#
# and they are placed in a folder called "data" your working directory.

# You should have the following files in the data directory
# google_data.txt  ny_temps.txt     stocks.png       yahoo_data.txt
# %ls ./data

# # Breakout problem
#
# Use your knowledge with `Python, NumPy, pandas and matplotlib` to reproduce the plot below:
#
# ![](answer.png?raw=true)

# start by loading data and packages
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
google_data = pd.read_csv('data/google_data.txt',sep="\t") # Note data seperator is a tab character (\t)
yahoo_data = pd.read_csv('data/yahoo_data.txt',sep="\t")
ny_temps = pd.read_csv('data/ny_temps.txt',sep='\t')



StarcoderdataJupyterScriptsDedupFiltered