---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/usr/local/lib/python3.6/site-packages/pandas/core/ops.py in na_op(x, y)
1201 try:
-> 1202 result = expressions.evaluate(op, str_rep, x, y, **eval_kwargs)
1203 except TypeError:
/usr/local/lib/python3.6/site-packages/pandas/core/computation/expressions.py in evaluate(op, op_str, a, b, use_numexpr, **eval_kwargs)
203 if use_numexpr:
--> 204 return _evaluate(op, op_str, a, b, **eval_kwargs)
205 return _evaluate_standard(op, op_str, a, b)
/usr/local/lib/python3.6/site-packages/pandas/core/computation/expressions.py in _evaluate_standard(op, op_str, a, b, **eval_kwargs)
63 with np.errstate(all='ignore'):
---> 64 return op(a, b)
65
TypeError: ufunc true_divide cannot use operands with types dtype('<M8[ns]') and dtype('<M8[ns]')
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last)
<ipython-input-25-b804940da547> in <module>()
----> 1 df.pct_change()
/usr/local/lib/python3.6/site-packages/pandas/core/generic.py in pct_change(self, periods, fill_method, limit, freq, **kwargs)
6889
6890 rs = (data.div(data.shift(periods=periods, freq=freq, axis=axis,
-> 6891 **kwargs)) - 1)
6892 if freq is None:
6893 mask = isna(_values_from_object(self))
/usr/local/lib/python3.6/site-packages/pandas/core/ops.py in f(self, other, axis, level, fill_value)
1258
1259 if isinstance(other, ABCDataFrame): # Another DataFrame
-> 1260 return self._combine_frame(other, na_op, fill_value, level)
1261 elif isinstance(other, ABCSeries):
1262 return self._combine_series(other, na_op, fill_value, axis, level)
/usr/local/lib/python3.6/site-packages/pandas/core/frame.py in _combine_frame(self, other, func, fill_value, level, try_cast)
3904 dtype=r.dtype)
3905
-> 3906 result = dict([(col, f(col)) for col in this])
3907
3908 # non-unique
/usr/local/lib/python3.6/site-packages/pandas/core/frame.py in <listcomp>(.0)
3904 dtype=r.dtype)
3905
-> 3906 result = dict([(col, f(col)) for col in this])
3907
3908 # non-unique
/usr/local/lib/python3.6/site-packages/pandas/core/frame.py in f(col)
3900
3901 def f(col):
-> 3902 r = _arith_op(this[col].values, other[col].values)
3903 return self._constructor_sliced(r, index=new_index,
3904 dtype=r.dtype)
/usr/local/lib/python3.6/site-packages/pandas/core/frame.py in _arith_op(left, right)
3892 right[right_mask & mask] = fill_value
3893
-> 3894 return func(left, right)
3895
3896 if this._is_mixed_type or other._is_mixed_type:
/usr/local/lib/python3.6/site-packages/pandas/core/ops.py in na_op(x, y)
1219 if np.prod(xrav.shape) and np.prod(yrav.shape):
1220 with np.errstate(all='ignore'):
-> 1221 result[mask] = op(xrav, yrav)
1222 elif hasattr(x, 'size'):
1223 result = np.empty(x.size, dtype=x.dtype)
TypeError: ufunc true_divide cannot use operands with types dtype('<M8[ns]') and dtype('<M8[ns]')