table
- property Portfolio.table
Return table with security name, ticker, weight for assets in the portfolio.
When at least one asset has a local name, an additional ‘local name’ column is inserted between ‘asset name’ and ‘ticker’.
- Returns:
- DataFrame
Security name - ticker - weight table.
Examples
>>> pf = ok.Portfolio(["MSFT.US", "AAPL.US"]) >>> pf.table asset name ticker weights 0 Microsoft Corporation MSFT.US 0.5 1 Apple Inc AAPL.US 0.5
>>> pf = ok.Portfolio(["SBER.MOEX", "MSFT.US"]) >>> pf.table asset name local name ticker weights 0 Sberbank Сбербанк SBER.MOEX 0.5 1 Microsoft Corporation Microsoft Corporation MSFT.US 0.5