def max_power_point(photocurrent, saturation_current, resistance_series,<EOL>resistance_shunt, nNsVth, method='<STR_LIT>'):
i_mp, v_mp, p_mp = _singlediode.bishop88_mpp(<EOL>photocurrent, saturation_current, resistance_series,<EOL>resistance_shunt, nNsVth, method=method.lower()<EOL>)<EOL>if isinstance(photocurrent, pd.Series):<EOL><INDENT>ivp = {'<STR_LIT>': i_mp, '<STR_LIT>': v_mp, '<STR_LIT>': p_mp}<EOL>out = pd.DataFrame(ivp, index=photocurrent.index)<EOL><DEDENT>else:<EOL><INDENT>out = OrderedDict()<EOL>out['<STR_LIT>'] = i_mp<EOL>out['<STR_LIT>'] = v_mp<EOL>out['<STR_LIT>'] = p_mp<EOL><DEDENT>return out<EOL>
Given the single diode equation coefficients, calculates the maximum power
point (MPP).

Parameters
----------
photocurrent : numeric
    photo-generated current [A]
saturation_current : numeric
    diode reverse saturation current [A]
resistance_series : numeric
    series resitance [ohms]
resistance_shunt : numeric
    shunt resitance [ohms]
nNsVth : numeric
    product of thermal voltage ``Vth`` [V], diode ideality factor ``n``,
    and number of serices cells ``Ns``
method : str
    either ``'newton'`` or ``'brentq'``

Returns
-------
OrderedDict or pandas.Datafrane
    ``(i_mp, v_mp, p_mp)``

Notes
-----
Use this function when you only want to find the maximum power point. Use
:func:`singlediode` when you need to find additional points on the IV
curve. This function uses Brent's method by default because it is
guaranteed to converge.