qteasy/database.py
def new_file(self, file_name, dataframe):
        """ create given dataframe into a new file with file_name

        :param dataframe:
        :param file_name:
        :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(dataframe)

        if self.file_exists(file_name):
            raise FileExistsError(f'the file with name {file_name} already exists!')
        # dataframe.to_csv(QT_ROOT_PATH + LOCAL_DATA_FOLDER + file_name + LOCAL_DATA_FILE_EXT)
        dataframe.reset_index().to_feather(QT_ROOT_PATH + LOCAL_DATA_FOLDER + file_name + LOCAL_DATA_FILE_EXT)
        return file_name
 create given dataframe into a new file with file_name

        :param dataframe:
        :param file_name:
        :return:
        
create given dataframe into a new file with file_name
create given dataframe into a new file with file_name
def new_file(self, file_name, dataframe):
        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(dataframe)
        if self.file_exists(file_name):
            raise FileExistsError(f'the file with name {file_name} already exists!')
        dataframe.reset_index().to_feather(QT_ROOT_PATH + LOCAL_DATA_FOLDER + file_name + LOCAL_DATA_FILE_EXT)
        return file_name
def new_file ( self , file_name , dataframe ) : 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 ( dataframe ) if self . file_exists ( file_name ) : raise FileExistsError ( f'the file with name {file_name} already exists!' ) dataframe . reset_index ( ) . to_feather ( QT_ROOT_PATH + LOCAL_DATA_FOLDER + file_name + LOCAL_DATA_FILE_EXT ) return file_name
create given dataframe into a new file with file_name
create given dataframe into a new file with file_name
""" create given dataframe into a new file with file_name

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