I am using seasonal_decomposition command to decompose time series with the following code:from pandas import read_csvseries=read_csv('K.csv', header=0, usecol[0,1], parse_dates=[0], index_col=0, squeeze=True)from random import randrangefrom matplotlib import pyplotfrom statsmodels.tsa.seasonal import seasonal_decomposeresult=seasonal_decompose(series, model='additive', freq=365)result.plot()pyplot.show()res = seasonal_decompose(series, model='additive', freq=365)resid = res.residseasonal = res.seasonal trend = res.trendprint trendAnd when I plot results with command result.plot() I got graph with reasonable values, but when I print this results in console  with print trend I got NaN values for trend and residuals, I cannot understand what is different when I can see this values on plot?
seasonal_decomposition NaN values
python;time series;ipython