def tseries_between(self, tstart=None, tend=None):
if self.tseries is None:<EOL><INDENT>return None<EOL><DEDENT>ndat = self.tseries.shape[<NUM_LIT:0>]<EOL>if tstart is None:<EOL><INDENT>istart = <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>igm = <NUM_LIT:0><EOL>igp = ndat - <NUM_LIT:1><EOL>while igp - igm > <NUM_LIT:1>:<EOL><INDENT>istart = igm + (igp - igm) // <NUM_LIT:2><EOL>if self.tseries.iloc[istart]['<STR_LIT:t>'] >= tstart:<EOL><INDENT>igp = istart<EOL><DEDENT>else:<EOL><INDENT>igm = istart<EOL><DEDENT><DEDENT>istart = igp<EOL><DEDENT>if tend is None:<EOL><INDENT>iend = None<EOL><DEDENT>else:<EOL><INDENT>igm = <NUM_LIT:0><EOL>igp = ndat - <NUM_LIT:1><EOL>while igp - igm > <NUM_LIT:1>:<EOL><INDENT>iend = igm + (igp - igm) // <NUM_LIT:2><EOL>if self.tseries.iloc[iend]['<STR_LIT:t>'] > tend:<EOL><INDENT>igp = iend<EOL><DEDENT>else:<EOL><INDENT>igm = iend<EOL><DEDENT><DEDENT>iend = igm + <NUM_LIT:1><EOL><DEDENT>return self.tseries.iloc[istart:iend]<EOL>
Return time series data between requested times.

        Args:
            tstart (float): starting time. Set to None to start at the
                beginning of available data.
            tend (float): ending time. Set to None to stop at the end of
                available data.
        Returns:
            :class:`pandas.DataFrame`: slice of :attr:`tseries`.