예제 #1
0
    def _cut_dataframe(dataframe: hint.dataframe) -> hint.dataframe:
        """
        Cut the dataframe to start at the new point

        Args:
            dataframe: dataframe to cut

        Returns:
            the cut dataframe
        """

        new = dataframe.copy()
        new = new.iloc[start_point:]
        new.reset_index(inplace=True, drop=True)

        return new
    def cut_dataframe(self, dataframe: hint.dataframe) -> hint.dataframe:
        """
        Cut dataframe to start at new point

        Args:
            dataframe: dataframe to cut

        Returns:
            the cut dataframe
        """

        new = dataframe.copy()
        new = new.iloc[self.cut_point:]
        new.reset_index(inplace=True, drop=True)
        new['index'] = range(len(new.index))

        return new