def separate_categories(data):
    """
    Separate the rows concerning "script-identifiable edits" from those
    concerning "other edits".
    Also, in each categry, and for each line, calculate the sum of
    levenshtein distances across all edits for that line.
    Return two separate DataFrames.
    """
    # Line 6 should have an entry in both other and script.
    data = data.groupby(["category", "line"], axis=0).sum()
    other = data.loc["other", :].reset_index()\
        .astype(int).sort_values(by=["line"])
    script = data.loc["script-identifiable", :]\
        .reset_index().astype(int).sort_values(by=["line"])
    # print(script.head(), other.head())
    return other, script