---------------------------------------------------------------------------
Exception Traceback (most recent call last)
<ipython-input-51-5a6da8260e90> in <module>()
1 TempLGA_arr = np.array(joined_df['Temp_LGA'][:30])
2 Tempsensor_arr = np.array(joined_df['Temp_sensor'][:30])
----> 3 pd.rolling_corr(TempLGA_arr, Tempsensor_arr, 10).plot()
/Users/Zelda/anaconda/lib/python2.7/site-packages/pandas/stats/moments.pyc in rolling_corr(arg1, arg2, window, pairwise, **kwargs)
316 pairwise=pairwise,
317 func_kw=['other', 'pairwise'],
--> 318 **kwargs)
319
320
/Users/Zelda/anaconda/lib/python2.7/site-packages/pandas/stats/moments.pyc in ensure_compat(dispatch, name, arg, func_kw, *args, **kwargs)
238 FutureWarning, stacklevel=3)
239
--> 240 result = getattr(r, name)(*args, **kwds)
241
242 if is_ndarray:
/Users/Zelda/anaconda/lib/python2.7/site-packages/pandas/core/window.pyc in corr(self, other, pairwise, **kwargs)
855 def corr(self, other=None, pairwise=None, **kwargs):
856 return super(Rolling, self).corr(other=other, pairwise=pairwise,
--> 857 **kwargs)
858
859
/Users/Zelda/anaconda/lib/python2.7/site-packages/pandas/core/window.pyc in corr(self, other, pairwise, **kwargs)
725
726 return _flex_binary_moment(self._selected_obj, other._selected_obj,
--> 727 _get_corr, pairwise=bool(pairwise))
728
729
/Users/Zelda/anaconda/lib/python2.7/site-packages/pandas/core/window.pyc in _flex_binary_moment(arg1, arg2, f, pairwise)
1263 if (isinstance(arg1, (np.ndarray, Series)) and
1264 isinstance(arg2, (np.ndarray, Series))):
-> 1265 X, Y = _prep_binary(arg1, arg2)
1266 return f(X, Y)
1267
/Users/Zelda/anaconda/lib/python2.7/site-packages/pandas/core/window.pyc in _prep_binary(arg1, arg2)
1398 def _prep_binary(arg1, arg2):
1399 if not isinstance(arg2, type(arg1)):
-> 1400 raise Exception('Input arrays must be of the same type!')
1401
1402 # mask out values, this also makes a common index...
Exception: Input arrays must be of the same type!