Skip to content

Commit

Permalink
document formatting using black
Browse files Browse the repository at this point in the history
  • Loading branch information
ranaroussi committed Jun 23, 2023
1 parent 766b79c commit 2f908e2
Show file tree
Hide file tree
Showing 7 changed files with 2,680 additions and 1,536 deletions.
8 changes: 6 additions & 2 deletions quantstats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

from . import stats, utils, plots, reports

__all__ = ['stats', 'plots', 'reports', 'utils', 'extend_pandas']
__all__ = ["stats", "plots", "reports", "utils", "extend_pandas"]

# try automatic matplotlib inline
utils._in_notebook(matplotlib_inline=True)
Expand Down Expand Up @@ -102,7 +102,9 @@ def extend_pandas():
_po.treynor_ratio = stats.treynor_ratio
_po.probabilistic_sharpe_ratio = stats.probabilistic_sharpe_ratio
_po.probabilistic_sortino_ratio = stats.probabilistic_sortino_ratio
_po.probabilistic_adjusted_sortino_ratio = stats.probabilistic_adjusted_sortino_ratio
_po.probabilistic_adjusted_sortino_ratio = (
stats.probabilistic_adjusted_sortino_ratio
)

# methods from utils
_po.to_returns = utils.to_returns
Expand Down Expand Up @@ -146,4 +148,6 @@ def extend_pandas():
_po.plot_monthly_heatmap = plots.monthly_heatmap

_po.metrics = reports.metrics


# extend_pandas()
Loading

0 comments on commit 2f908e2

Please sign in to comment.