modify rename to take one argument
if a dseries
contains only one time series, when using the rename
method, allow it to take just one argument. In this case, that argument will overwrite the name of the only series in the dseries
. Useful in this situation (qd is a dseries with multiple series):
a = 100*(exp(qd.myseries/100)-1);
a = a.rename('myseries');