celeries.series.Var.subst#
- Var.subst(x, Q, power=None, negative=False)#
Replace a variable by a series.
- Parameters:
- xVar
Variable to be replaced.
- QSeries
Series to be substituted to x.
- powerint or None
If a power is specified, x**(k*power+r) is replaced by Q**k * x**r, where k is an integer (which can be negative if negative is True), and r is an integer of the same sign as power and smaller in absolute value.
- negativebool
Whether to allow negative multiple of power.
- Returns:
- RSeries
Series where x has been replaced by Q.