<jupyter_start><jupyter_text>Activity 7 - Dummy VariablesFor this activity, we will use the Austin, Texas weather dataset that we used in theprevious activity. In this activity, we will use dummy variables to enhance our linearregression model for this dataset.<jupyter_code>import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from sklearn.linear_model import LinearRegression
    
# Loading the data from activity 1
df = pd.read_csv('activity2_measurements.csv')
df_first_year = pd.read_csv('activity_first_year.csv')
rolling = pd.read_csv('activity2_rolling.csv')
window = 20

# Trendline values
trend_x = np.array([
    1,
    182.5,
    365
])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07327586206896551, 'fraction_numerical': 0.020114942528735632, 'mean_word_length': 5.223214285714286, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '416256', 'license': 'MIT', 'n_tokens_mistral': 225, 'n_tokens_neox': 213, 'n_words': 73, 'path': 'Chapter 3 - Regression Analysis/Activity 7 - Dummy Values.ipynb', 'repo_name': 'doc-E-brown/Applied-Supervised-Learning-with-Python', 'size': '696'}