qteasy/database.py
def validated_dataframe(self, df):
        """ checks the df input, and validate its index and prepare sorting

        :param df:
        :return:
        """
        if not isinstance(df, pd.DataFrame):
            raise TypeError(f'data should be a pandas df, the input is not in valid format!')
        try:
            df.rename(index=pd.to_datetime, inplace=True)
            df.sort_index()
            df.index.name='date'
        except:
            raise RuntimeError(f'Can not convert index of input data to datetime format!')
        return df
 checks the df input, and validate its index and prepare sorting

        :param df:
        :return:
        
checks the df input, and validate its index and prepare sorting
checks the df input and validate its index and prepare sorting
def validated_dataframe(self, df):
        if not isinstance(df, pd.DataFrame):
            raise TypeError(f'data should be a pandas df, the input is not in valid format!')
        try:
            df.rename(index=pd.to_datetime, inplace=True)
            df.sort_index()
            df.index.name='date'
        except:
            raise RuntimeError(f'Can not convert index of input data to datetime format!')
        return df
def validated_dataframe ( self , df ) : if not isinstance ( df , pd . DataFrame ) : raise TypeError ( f'data should be a pandas df, the input is not in valid format!' ) try : df . rename ( index = pd . to_datetime , inplace = True ) df . sort_index ( ) df . index . name = 'date' except : raise RuntimeError ( f'Can not convert index of input data to datetime format!' ) return df
checks the df input, and validate its index and prepare sorting
checks the df input and validate its index and prepare sorting
""" checks the df input, and validate its index and prepare sorting

        :param df:
        :return:
        """
None
self
df
None