# ---
# 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
from matplotlib import pyplot as plt

df = pd.read_csv('/Users/edwardkohn/Desktop/UofM-COG-DATA-PT-09-2019-U-C-master 20/Homework/11-Web/Instructions/Resources/cities.csv')

df.head()

df=df.set_index('Lat')

df.head()

df1 = df[['Cloudiness','Humidity','Max Temp','Wind Speed']]
df1.head()

#graphs
for i in df1:
    plt.scatter(df1.index, df1[i])
    plt.title(f'Lat Vs {i}')
    plt.grid()
    plt.xlabel('Lat')
    plt.ylabel(i)
    plt.show()
    plt.savefig(f'Lat Vs.{i}.png')


df.head()

html_data = df.to_html()

html_data

df.to_html('data.html')



StarcoderdataJupyterScriptsDedupFiltered