src/main.py
def calculate_total_value(self):
        """get the total values of the individual portfolios in base currency
        and return the sum of the total values in main currency."""
        df = pd.DataFrame()
        for name, obj in self.instances.items():
            df[name] = obj.get_total_value()
        total_base = df.sum(axis=1)
        total = total_base.div(Currency().currencies_df[self.currency])
        total = total.dropna(how='all')
        return total
get the total values of the individual portfolios in base currency
        and return the sum of the total values in main currency.
get the total values of the individual portfolios in base currency
and return the sum of the total values in main currency.
get the total values of the individual portfolios in base currency and return the sum of the total values in main currency .
def calculate_total_value(self):
        df = pd.DataFrame()
        for name, obj in self.instances.items():
            df[name] = obj.get_total_value()
        total_base = df.sum(axis=1)
        total = total_base.div(Currency().currencies_df[self.currency])
        total = total.dropna(how='all')
        return total
def calculate_total_value ( self ) : df = pd . DataFrame ( ) for name , obj in self . instances . items ( ) : df [ name ] = obj . get_total_value ( ) total_base = df . sum ( axis = 1 ) total = total_base . div ( Currency ( ) . currencies_df [ self . currency ] ) total = total . dropna ( how = 'all' ) return total
get the total values of the individual portfolios in base currency
and return the sum of the total values in main currency.
get the total values of the individual portfolios in base currency and return the sum of the total values in main currency .
"""get the total values of the individual portfolios in base currency
        and return the sum of the total values in main currency."""
self