App/Model.py
def updata(self, column, data):
        """
        updates a single column with new data, the size of the data needs to be
        the same as the existing records

        Args:
            column (str): name of the column in the dataframe to update
            data (list/np.array): dataframe of the data to update

        Raises:
            exp: raise a generic exception if something goes wrong

        Returns:
            ans (dataframe.info()): updated pandas dataframe description
        """
        try:
            ans = False
            self.data_frame[column] = data
            if self.data_frame[column] is not None:
                ans = True
            return ans

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

        updates a single column with new data, the size of the data needs to be
        the same as the existing records

        Args:
            column (str): name of the column in the dataframe to update
            data (list/np.array): dataframe of the data to update

        Raises:
            exp: raise a generic exception if something goes wrong

        Returns:
            ans (dataframe.info()): updated pandas dataframe description
        
updates a single column with new data, the size of the data needs to be
the same as the existing records
updates a single column with new data the size of the data needs to be the same as the existing records
def updata(self, column, data):
        try:
            ans = False
            self.data_frame[column] = data
            if self.data_frame[column] is not None:
                ans = True
            return ans
        except Exception as exp:
            Err.reraise(exp, "Gallery: updata")
def updata ( self , column , data ) : try : ans = False self . data_frame [ column ] = data if self . data_frame [ column ] is not None : ans = True return ans except Exception as exp : Err . reraise ( exp , "Gallery: updata" )
updates a single column with new data, the size of the data needs to be
the same as the existing records
updates a single column with new data the size of the data needs to be the same as the existing records
"""
        updates a single column with new data, the size of the data needs to be
        the same as the existing records

        Args:
            column (str): name of the column in the dataframe to update
            data (list/np.array): dataframe of the data to update

        Raises:
            exp: raise a generic exception if something goes wrong

        Returns:
            ans (dataframe.info()): updated pandas dataframe description
        """ # exception handling
ans (dataframe.info()): updated pandas dataframe description
ans ( dataframe . info () ) : updated pandas dataframe description
raise a generic exception if something goes wrong
raise a generic exception if something goes wrong
exp
self
column
name of the column in the dataframe to update
name of the column in the dataframe to update
data
dataframe of the data to update
dataframe of the data to update