celeries.series.Series.sortdegree#

Series.sortdegree(varlist=None)#

Sort the terms (monomials) of the series depending on their degree with respect to the variables in varlist (if provided) or to the truncation variables (if varlist is None).

Parameters:
varlistiterable or None

List of variables to consider for the degree of a monomial.

Returns:
sortdeg: dict

Dictionary of the form: degree -> part of the series of that degree.