portfolio_toolkit.portfolio.time_series.plot module

portfolio_toolkit.portfolio.time_series.plot.plot_evolution(df_portfolio)[source]

Generates a chart showing the evolution of the portfolio value over time.

Parameters:

df_portfolio (pd.DataFrame) – Structured DataFrame with the portfolio evolution.

Returns:

None

portfolio_toolkit.portfolio.time_series.plot.plot_evolution_stacked(df_portfolio)[source]

Generates a stacked area chart showing the evolution of the portfolio value by ticker.

Parameters:

df_portfolio (pd.DataFrame) – Structured DataFrame with the portfolio evolution.

Returns:

None

portfolio_toolkit.portfolio.time_series.plot.plot_evolution_vs_cost(df_portfolio)[source]

Plots the evolution of the portfolio value along with the cost of the shares.

Parameters:

df_portfolio (pd.DataFrame) – DataFrame with the portfolio evolution.

Returns:

None

portfolio_toolkit.portfolio.time_series.plot.plot_evolution_ticker(df_portfolio, ticker)[source]

Plots the evolution of the value of a specific ticker in the portfolio, including the accumulated cost.

Parameters:
  • df_portfolio (pd.DataFrame) – Structured DataFrame with the portfolio evolution.

  • ticker (str) – The asset symbol.

Returns:

None