-
Notifications
You must be signed in to change notification settings - Fork 12
/
workshop.py
79 lines (39 loc) · 1.47 KB
/
workshop.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
"""Workshop main flow."""
# %% [1] Importing Libraries and Data
# Third-party imports
# Local imports
# %% [2] Exploring the Data
# Load the data
# Print length of data
# Print first three rows of DataFrame
# TODO: Print last three rows of DataFrame
# %% [3] Visualization
# Order rows according to date
# Reset index to restore its order
# Drop categorical columns
# Plot temperature vs. date
# TODO: Plot temperature vs date using only the data from 2006
# -----------------------------------------------------------------------------
# Plot temperature and humidity in the same plot
# TODO: Plot different combinations of the variables, and for different years
# %% [4] Data summarization and aggregation
# Weather data by year
# TODO: Create and use a function to average the weather data by month
# %% [5] Data Analysis and Interpretation
# Plot correlations
# Plot gradient colormaps
# Compute correlations
# TODO: Get the correlation for different combinations of variables.
# Contrast them with the weather_correlations dataframe.
# %% [6] Data Modeling and Prediction
# Get data subsets for the model
# Run regression
# Print coefficients
# %% [7] Predictive Model Testing and Evaluation
# Plot predicted model with test data
# TODO: Using the model, predict the temperature for a given level of humidity
# Evaluate model numerically