def datetime_aligned(ds1, ds2, maxLen=None):
 aligned1 = dataseries.SequenceDataSeries(maxLen)
 aligned2 = dataseries.SequenceDataSeries(maxLen)
 Syncer(ds1, ds2, aligned1, aligned2)
 return (aligned1, aligned2)

def datetime_aligned ( ds1 , ds2 , maxLen = None ) : aligned1 = dataseries . SequenceDataSeries ( maxLen ) aligned2 = dataseries . SequenceDataSeries ( maxLen ) Syncer ( ds1 , ds2 , aligned1 , aligned2 ) return ( aligned1 , aligned2 )
returns two dataseries that exhibit only those values whose datetimes are in both dataseries .