polynomial.polyutils.
trimseq
Remove small Poly series coefficients.
Sequence of Poly series coefficients. This routine fails for empty sequences.
Subsequence with trailing zeros removed. If the resulting sequence would be empty, return the first element. The returned sequence may or may not be a view.
Notes
Do not lose the type info if the sequence contains unknown objects.