def composition_to_oxidcomposition(series, **kwargs):
    """
    Adds oxidation states to a Composition using pymatgen's guessing routines

    Args:
        series: a pd.Series with Composition object components
        **kwargs: parameters to control Composition.oxi_state_guesses()

    Returns:
        a pd.Series with oxidation state Composition object components
    """

    return series.map(lambda c: c.add_charges_from_oxi_state_guesses(**kwargs))