Hi There,

referring to the link below where the second snippet that has a return function:

```
return transformToTimeseries(results, consumption);
```

#Metric referencing actionDecl-based metric returns empty timeseries

What is the python equivelant to return a time series object?

```
def simpleCorrelation(Y,x):
try:
indi = list(reduce(lambda x, y: x + y, Y.items()))
depen = list(reduce(lambda x, y: x + y, x.items()))
except NameError:
indi = list(fc.reduce(lambda x, y: x + y, Y.items()))
depen = list(fc.reduce(lambda x, y: x + y, x.items()))
a = (np.corrcoef(indi[1], depen[1]))
flat_list = [item for sublist in a for item in sublist]
r = (flat_list[1])
return TimeSeries(r) #<------------------------????????????????????????
```

Or do I need to build in more functionality to return a list of (len(Y))?

Cheers!