qteasy/database.py
def overwrite_file(self, file_name, df):
        """ save df as file name or overwrite file name if file_name already exists

        :param file_name:
        :param df:
        :return:
        """
        if not isinstance(file_name, str):
            raise TypeError(f'file_name name must be a string, {file_name} is not a valid input!')
        df = self.validated_dataframe(df)
        # df.to_csv(QT_ROOT_PATH + LOCAL_DATA_FOLDER + file_name + LOCAL_DATA_FILE_EXT)
        df.reset_index().to_feather(QT_ROOT_PATH + LOCAL_DATA_FOLDER + file_name + LOCAL_DATA_FILE_EXT)
        return file_name
 save df as file name or overwrite file name if file_name already exists

        :param file_name:
        :param df:
        :return:
        
save df as file name or overwrite file name if file_name already exists
save df as file name or overwrite file name if file_name already exists
def overwrite_file(self, file_name, df):
        if not isinstance(file_name, str):
            raise TypeError(f'file_name name must be a string, {file_name} is not a valid input!')
        df = self.validated_dataframe(df)
        df.reset_index().to_feather(QT_ROOT_PATH + LOCAL_DATA_FOLDER + file_name + LOCAL_DATA_FILE_EXT)
        return file_name
def overwrite_file ( self , file_name , df ) : if not isinstance ( file_name , str ) : raise TypeError ( f'file_name name must be a string, {file_name} is not a valid input!' ) df = self . validated_dataframe ( df ) df . reset_index ( ) . to_feather ( QT_ROOT_PATH + LOCAL_DATA_FOLDER + file_name + LOCAL_DATA_FILE_EXT ) return file_name
save df as file name or overwrite file name if file_name already exists
save df as file name or overwrite file name if file_name already exists
""" save df as file name or overwrite file name if file_name already exists

        :param file_name:
        :param df:
        :return:
        """ # df.to_csv(QT_ROOT_PATH + LOCAL_DATA_FOLDER + file_name + LOCAL_DATA_FILE_EXT)
None
self
file_name
None
df
None