Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
Demonstration of the funds_py package
Project Link: github.com/joaopm33/funds_py
Documentation: joaopm33.github.io/fundspy/docs/fundspy.html
Author: Joao Penido Monteiro
Linkedin: linkedin.com/in/joao-penido-monteiro/
1. Import the needed libraries
from fundspy.fundspy import returns, cum_returns, volatility, drawdown, corr_benchmark, beta, alpha, sharpe, sortino, capture_ratio
import pandas as pd
import sqlite3
import plotly.express as px
pd.set_option('display.max_rows', 20)
pd.set_option('display.max_columns', 500)
pd.options.display.float_format = '{:,.4f}'.format
2. Connect to the database
#connects to the database
con = sqlite3.connect(r"investments_database.db")