App/Model.py
def save_gallery(self, fn, dfolder):
        """
        save the in memory dataframe into a CSV file with UTF-8 encoding

        Args:
            fn (str): file name with .csv extension
            dfolder (file-object): valid dirpath str or array with
            valid folders.

        Raises:
            exp: raise a generic exception if something goes wrong
        """
        try:
            # pandas function to save dataframe in CSV file
            ans = False
            gfp = os.path.join(os.getcwd(), dfolder, fn)
            tdata = self.data_frame.to_csv(
                gfp,
                sep=",",
                index=False,
                encoding="utf-8",
                mode="w",
                quoting=csv.QUOTE_ALL
            )
            if tdata is None:
                ans = True
            return ans

        # exception handling
        except Exception as exp:
            Err.reraise(exp, "Gallery: save_gallery")

        save the in memory dataframe into a CSV file with UTF-8 encoding

        Args:
            fn (str): file name with .csv extension
            dfolder (file-object): valid dirpath str or array with
            valid folders.

        Raises:
            exp: raise a generic exception if something goes wrong
        
save the in memory dataframe into a CSV file with UTF-8 encoding
Args:
fn (str): file name with .csv extension
dfolder (file-object): valid dirpath str or array with
valid folders.

raise a generic exception if something goes wrong
save the in memory dataframe into a CSV file with UTF - 8 encoding Args : fn ( str ) : file name with . csv extension dfolder ( file - object ) : valid dirpath str or array with valid folders . raise a generic exception if something goes wrong
def save_gallery(self, fn, dfolder):
        try:
            ans = False
            gfp = os.path.join(os.getcwd(), dfolder, fn)
            tdata = self.data_frame.to_csv(
                gfp,
                sep=",",
                index=False,
                encoding="utf-8",
                mode="w",
                quoting=csv.QUOTE_ALL
            )
            if tdata is None:
                ans = True
            return ans
        except Exception as exp:
            Err.reraise(exp, "Gallery: save_gallery")
def save_gallery ( self , fn , dfolder ) : try : ans = False gfp = os . path . join ( os . getcwd ( ) , dfolder , fn ) tdata = self . data_frame . to_csv ( gfp , sep = "," , index = False , encoding = "utf-8" , mode = "w" , quoting = csv . QUOTE_ALL ) if tdata is None : ans = True return ans except Exception as exp : Err . reraise ( exp , "Gallery: save_gallery" )
save the in memory dataframe into a CSV file with UTF-8 encoding
Args:
fn (str): file name with .csv extension
dfolder (file-object): valid dirpath str or array with
valid folders.
save the in memory dataframe into a CSV file with UTF - 8 encoding Args : fn ( str ) : file name with . csv extension dfolder ( file - object ) : valid dirpath str or array with valid folders .
"""
        save the in memory dataframe into a CSV file with UTF-8 encoding

        Args:
            fn (str): file name with .csv extension
            dfolder (file-object): valid dirpath str or array with
            valid folders.

        Raises:
            exp: raise a generic exception if something goes wrong
        """ # pandas function to save dataframe in CSV file # exception handling
self
fn
dfolder