scripts/step3.py
def plot_experience(df):
    """Plots the experience distribution in a Donut plot.

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

    """

    # Define our custom culors.
    colors = ["#0091ea", "#ff5722", "#43a047", "#7e57c2", "#1565c0",
              "#2e7d32", "#c62828", "#ef6c00", "#ffc400", "#64dd17"]

    experience = df["experience"].value_counts()

    fig = go.Figure()

    fig.add_traces(go.Pie(labels=experience.index,
                          values=experience.values,
                          marker_colors=colors,
                          hole=0.5,
                          insidetextfont_color="#FFFFFF"))

    # Add final customizations.
    fig.update_layout(
        legend_bordercolor="#FFFFFF",
        legend_borderwidth=1.5,
        legend_x=0.88,
        legend_y=0.5,
        font_color="#FFFFFF",
        font_size=18,
        title_text="Required Experience Distribution",
        title_x=0.5,
        title_y=0.93,
        margin={"r": 0, "t": 150, "l": 0, "b": 50},
        width=1200,
        height=800,
        title_font_size=30,
        paper_bgcolor="#37474f"
    )

    fig.write_image("10.png")
Plots the experience distribution in a Donut plot.

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

    
Plots the experience distribution in a Donut plot.
Parameters

df : pandas.DataFrame
A pandas DataFrame containing job offers data.
Plots the experience distribution in a Donut plot . Parameters df : pandas . DataFrame A pandas DataFrame containing job offers data .
def plot_experience(df):
    colors = ["#0091ea", "#ff5722", "#43a047", "#7e57c2", "#1565c0",
              "#2e7d32", "#c62828", "#ef6c00", "#ffc400", "#64dd17"]
    experience = df["experience"].value_counts()
    fig = go.Figure()
    fig.add_traces(go.Pie(labels=experience.index,
                          values=experience.values,
                          marker_colors=colors,
                          hole=0.5,
                          insidetextfont_color="#FFFFFF"))
    fig.update_layout(
        legend_bordercolor="#FFFFFF",
        legend_borderwidth=1.5,
        legend_x=0.88,
        legend_y=0.5,
        font_color="#FFFFFF",
        font_size=18,
        title_text="Required Experience Distribution",
        title_x=0.5,
        title_y=0.93,
        margin={"r": 0, "t": 150, "l": 0, "b": 50},
        width=1200,
        height=800,
        title_font_size=30,
        paper_bgcolor="#37474f"
    )
    fig.write_image("10.png")
def plot_experience ( df ) : colors = [ "#0091ea" , "#ff5722" , "#43a047" , "#7e57c2" , "#1565c0" , "#2e7d32" , "#c62828" , "#ef6c00" , "#ffc400" , "#64dd17" ] experience = df [ "experience" ] . value_counts ( ) fig = go . Figure ( ) fig . add_traces ( go . Pie ( labels = experience . index , values = experience . values , marker_colors = colors , hole = 0.5 , insidetextfont_color = "#FFFFFF" ) ) fig . update_layout ( legend_bordercolor = "#FFFFFF" , legend_borderwidth = 1.5 , legend_x = 0.88 , legend_y = 0.5 , font_color = "#FFFFFF" , font_size = 18 , title_text = "Required Experience Distribution" , title_x = 0.5 , title_y = 0.93 , margin = { "r" : 0 , "t" : 150 , "l" : 0 , "b" : 50 } , width = 1200 , height = 800 , title_font_size = 30 , paper_bgcolor = "#37474f" ) fig . write_image ( "10.png" )
Plots the experience distribution in a Donut plot.
Plots the experience distribution in a Donut plot .
"""Plots the experience distribution in a Donut plot.

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

    """ # Define our custom culors. # Add final customizations.
df