def get_state_counts(df):
    """Gets the number of counts per state.

    Parameters
    ----------
    df : pandas.DataFrame
        The DataFrame to be analyzed.

    """

    total_count = 0
    state_counts = list()

    # We will get the count for each state.
    for state in STATES:

        state_count = len(df[df["text_lower"] == state.lower()])

        state_counts.append([state, state_count])
        total_count += state_count

    state_counts.sort(key=lambda x: x[1])

    print(state_counts)
    print(total_count)
Gets the number of counts per state.

    Parameters
    ----------
    df : pandas.DataFrame
        The DataFrame to be analyzed.

    
scripts/step3.py