scripts/step3.py
def plot_hours(df):
    """Plots the hours required to work in an Histogram.

    Parameters
    ----------
    df : pandas.DataFrame
        A pandas DataFrame containing job offers data.

    """

    fig = go.Figure()

    fig.add_traces(go.Histogram(x=df["hours_worked"],  marker_color="#ffa000"))

    fig.update_xaxes(title="Hours Required", ticks="outside", ticklen=10,  gridwidth=0.5,
                     tickcolor="#FFFFFF", linewidth=2, showline=True, mirror=True, nticks=35, title_standoff=20)

    fig.update_yaxes(title="Number of Job Offers", ticks="outside", ticklen=10, separatethousands=True,
                     tickcolor="#FFFFFF", linewidth=2, showline=True, mirror=True, nticks=18, gridwidth=0.5, title_standoff=5)

    # Add final customizations.
    fig.update_layout(
        showlegend=False,
        width=1200,
        height=800,
        font_color="#FFFFFF",
        font_size=18,
        title_text="Labour Hours Distribution",
        title_x=0.5,
        title_y=0.93,
        margin_l=120,
        margin_b=120,
        title_font_size=30,
        paper_bgcolor="#37474f",
        plot_bgcolor="#263238"
    )

    fig.write_image("7.png")
Plots the hours required to work in an Histogram.

    Parameters
    ----------
    df : pandas.DataFrame
        A pandas DataFrame containing job offers data.

    
Plots the hours required to work in an Histogram.
Parameters

df : pandas.DataFrame
A pandas DataFrame containing job offers data.
Plots the hours required to work in an Histogram . Parameters df : pandas . DataFrame A pandas DataFrame containing job offers data .
def plot_hours(df):
    fig = go.Figure()
    fig.add_traces(go.Histogram(x=df["hours_worked"],  marker_color="#ffa000"))
    fig.update_xaxes(title="Hours Required", ticks="outside", ticklen=10,  gridwidth=0.5,
                     tickcolor="#FFFFFF", linewidth=2, showline=True, mirror=True, nticks=35, title_standoff=20)
    fig.update_yaxes(title="Number of Job Offers", ticks="outside", ticklen=10, separatethousands=True,
                     tickcolor="#FFFFFF", linewidth=2, showline=True, mirror=True, nticks=18, gridwidth=0.5, title_standoff=5)
    fig.update_layout(
        showlegend=False,
        width=1200,
        height=800,
        font_color="#FFFFFF",
        font_size=18,
        title_text="Labour Hours Distribution",
        title_x=0.5,
        title_y=0.93,
        margin_l=120,
        margin_b=120,
        title_font_size=30,
        paper_bgcolor="#37474f",
        plot_bgcolor="#263238"
    )
    fig.write_image("7.png")
def plot_hours ( df ) : fig = go . Figure ( ) fig . add_traces ( go . Histogram ( x = df [ "hours_worked" ] , marker_color = "#ffa000" ) ) fig . update_xaxes ( title = "Hours Required" , ticks = "outside" , ticklen = 10 , gridwidth = 0.5 , tickcolor = "#FFFFFF" , linewidth = 2 , showline = True , mirror = True , nticks = 35 , title_standoff = 20 ) fig . update_yaxes ( title = "Number of Job Offers" , ticks = "outside" , ticklen = 10 , separatethousands = True , tickcolor = "#FFFFFF" , linewidth = 2 , showline = True , mirror = True , nticks = 18 , gridwidth = 0.5 , title_standoff = 5 ) fig . update_layout ( showlegend = False , width = 1200 , height = 800 , font_color = "#FFFFFF" , font_size = 18 , title_text = "Labour Hours Distribution" , title_x = 0.5 , title_y = 0.93 , margin_l = 120 , margin_b = 120 , title_font_size = 30 , paper_bgcolor = "#37474f" , plot_bgcolor = "#263238" ) fig . write_image ( "7.png" )
Plots the hours required to work in an Histogram.
Plots the hours required to work in an Histogram .
"""Plots the hours required to work in an Histogram.

    Parameters
    ----------
    df : pandas.DataFrame
        A pandas DataFrame containing job offers data.

    """ # Add final customizations.
df