This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import scipy | |
| import matplotlib.pyplot as plt | |
| import sys | |
| def compute_r_squared(data, predictions): | |
| ''' | |
| In exercise 5, we calculated the R^2 value for you. But why don't you try and | |
| and calculate the R^2 value yourself. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pandas import * | |
| from ggplot import * | |
| def plot_weather_data(turnstile_weather): | |
| ''' | |
| You are passed in a dataframe called turnstile_weather. | |
| Use turnstile_weather along with ggplot to make a data visualization | |
| focused on the MTA and weather data we used in assignment #3. | |
| You should feel free to implement something that we discussed in class | |
| (e.g., scatterplots, line plots, or histograms) or attempt to implement |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from pandas import * | |
| from ggplot import * | |
| def plot_weather_data(turnstile_weather): | |
| ''' | |
| plot_weather_data is passed a dataframe called turnstile_weather. | |
| Use turnstile_weather along with ggplot to make another data visualization | |
| focused on the MTA and weather data we used in Project 3. | |
| Make a type of visualization different than what you did in the previous exercise. |
OlderNewer