<jupyter_start><jupyter_text>Unit testing jworkflow/data.py Want to create a function that'll examine the output of `get_fremont_data()` and make sure it conforms to what it's expected to output.<jupyter_code>from jworkflow.data import get_fremont_data
import pandas as pd

def test_fremont_data():
    data = get_fremont_data()
    # we know data.columns should be west east & total:
    assert all(data.columns == ['West', 'East', 'Total'])
    # also want date.index to be a DateTimeIndex instance
    assert isinstance(data.index, pd.DatetimeIndex)<jupyter_output><empty_output><jupyter_text>Unit Test Frameworks allow you to run unit tests automatically<jupyter_code>test_fremont_data()
data = pd.read_csv('Fremont.csv', index_col='Date')
try:
    data.index = pd.to_datetime(data.index, format='%m/%d/%Y %H:%M:%S %p')
except TypeError:
    data.index = pd.to_datetime(data.index)
data.index
data.columns = ['West', 'East']
data['Total'] = data['West'] + data['East']<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12574850299401197, 'fraction_numerical': 0.0, 'mean_word_length': 5.6866666666666665, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '476681', 'license': 'MIT', 'n_tokens_mistral': 343, 'n_tokens_neox': 334, 'n_words': 89, 'path': 'Scratch.ipynb', 'repo_name': 'WNoxchi/JupyterWorkFlow', 'size': '1002'}