def question_2(data):
    ' Exploring data specifically in Israel '
    data = data.copy()
    data = data[(data['Country'] == 'Israel')]
    data['Year'] = data['Year'].astype(str)
    fig = px.scatter(data, x='DayOfYear', y='Temp', color='Year', width=1500, height=700, labels={'DayOfYear': 'Day of Year', 'Temp': 'Temperature'}, title='Q2(1) The relation between the day in the year and the temperature in Israel')
    fig.update_xaxes(range=[0, 365], tick0=0, dtick=20)
    fig.show()
    std_by_month = data.groupby('Month').std().reset_index()
    fig = px.bar(std_by_month, x='Month', y='Temp', width=1500, height=700, labels={'Temp': 'Std of the daily temperatures'}, title='Q2(2) The Standard Deviation of the Daily Temperatures Per Month in Israel')
    fig.data[(- 1)].text = np.round(std_by_month['Temp'], 3)
    fig.update_xaxes(tick0=1, dtick=1)
    fig.update_traces(textposition='outside')
    fig.show()
Exploring data specifically in Israel
def question_2(data):
    '  '
    data = data.copy()
    data = data[(data['Country'] == 'Israel')]
    data['Year'] = data['Year'].astype(str)
    fig = px.scatter(data, x='DayOfYear', y='Temp', color='Year', width=1500, height=700, labels={'DayOfYear': 'Day of Year', 'Temp': 'Temperature'}, title='Q2(1) The relation between the day in the year and the temperature in Israel')
    fig.update_xaxes(range=[0, 365], tick0=0, dtick=20)
    fig.show()
    std_by_month = data.groupby('Month').std().reset_index()
    fig = px.bar(std_by_month, x='Month', y='Temp', width=1500, height=700, labels={'Temp': 'Std of the daily temperatures'}, title='Q2(2) The Standard Deviation of the Daily Temperatures Per Month in Israel')
    fig.data[(- 1)].text = np.round(std_by_month['Temp'], 3)
    fig.update_xaxes(tick0=1, dtick=1)
    fig.update_traces(textposition='outside')
    fig.show()