# ---
# 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
# ---

import pandas as pd
import numpy as np
import matplotlib
import matplotlib.pyplot as plt

plt.style.use('seaborn-whitegrid')
plt.rc('figure', figsize=(10, 6))

googc = pd.read_csv('./GOOG.csv')

googc

googc.info()

googc.sort_values(by=['date'])

googc

googc = googc.sort_values(by=['date'])

googc

axes = plt.subplot(1, 1, 1)
axes.set_xticks([])
axes.plot(googc['date'], googc['open'])

# +
googc['date']=pd.to_datetime(googc['date'],format='%Y-%m-%d')
googc.index = googc['date']

month = googc.groupby(pd.Grouper(freq='M'))

monthDF = month.mean()
monthDF
# -

axes = plt.subplot(1, 1, 1)
axes.set_xticks([])
axes.plot(monthDF.index, monthDF['open'])

axes = plt.subplot(1, 1, 1)
axes.set_xticks([])
axes.scatter(monthDF.index, monthDF['open'])



StarcoderdataJupyterScriptsDedupFiltered