semvec/pypi-packages huggingface dataset:
PortfolioAnalysis 1.0
Manage configuration files
License: MIT

# Portfoilo Analyzer

The **Portfoilo Analyzer** is basic portfolio analyzing tool with **visualization** supporting both *cumulative return data* and *return data*

Supported Analysis

- CAGR
- Sharpe Ratio
- Sortino Ratio
- MDD
- Average Drawdown

Visualization

- Cumulative Return
- Log-scale Cumulative Return
- Drawdown
- Analysis data table

## Install
```Shell
    pip install PortfolioAnalysis
```
or

```Shell
    python setup.py install
```

## How to use
```Python
    #import
    from PortfolioAnalysis import PortfolioAnalysis

    #read csv to get dataframe
    returns = pd.read_csv(r'C:\Users\QRAFT1\Desktop\data\ks_etf\returns.csv', index_col=['Date'])

    #Analyze data during initialization
    analysis = PortfolioAnalysis(returns, cumulative=Tru, auto_drop=True, window='M')

    #Visualization (http)
    analysis.report()
```