indentation is mess line 13,14,15.
get_filters() function dos not make sense.
It shall be one blank line between functions.
Can be written like this.
get_filters() function dos not make sense.
It shall be one blank line between functions.
Can be written like this.
import time import pandas as pd import numpy as np CITY_DATA = { 'Chicago': 'chicago.csv', 'New York city': 'new_york_city.csv', 'Washington': 'washington.csv' } def city_choice(): city = input('Would you like to see data for Chicago, New York, or Washington? ') return CITY_DATA.get(city, 'No data') def load_data(city_choice): city = city_choice() if city == 'No data': return 'No city data for input given' else: df = pd.read_csv(city) return df.head() if __name__ == '__main__': print(load_data(city_choice))