import pandas as pd
from datetime import datetime
z = pd.DataFrame({'a': [datetime.strptime('20150101', '%Y%m%d')], 'b': [
    datetime.strptime('20140601', '%Y%m%d')]})
td_series = z['a'] - z['b']
extracting days from a numpy.timedelta64 value