import os
from urllib.request import urlretrieve
import pandas as pd

URL = 'https://data.seattle.gov/api/views/65db-xm6k/rows.csv?accessType=DOWNLOAD'

def get_fremont_data(filename="Fremont.csv",\
    url = URL, 
    force_download = False):
    """Download and cache fremont date
    Parameters
    -----------
    filename: string (optional)
        location to save the data
    url: string (optional)
        web location of the data
    force_download: bool (optional)
        if True force download the data
    Returns
    -----------
    data: pd.DataFrame
        the Fremont bridge bike data"""
    if force_download or not os.path.exists(filename):
        urlretrieve(url, filename)

    data = pd.read_csv(filename, index_col="Date")

    try:
        data.index = pd.to_datetime(data.index, format="%m/%d/%Y %I:%M:%S %p")
    except ValueError:
        data.index = pd.to_datetime(data.index)

    data.columns = ['West', 'East']
    data['Total'] = data.sum(axis = 1)
    return data

@@ -146,16 +146,17 @@
 NLOAD'%0A%0A
+%0A
 def get_
@@ -195,26 +195,56 @@
 sv%22,
-%5C
 %0A    
-url = URL, %0A
+                 url=URL,%0A                 
     
@@ -257,19 +257,17 @@
 download
- = 
+=
 False):%0A
@@ -1001,19 +1001,17 @@
 sum(axis
- = 
+=
 1)%0A    r

format code using VSCode format