-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
Comparing changes
Choose two branches to see what’s changed or to start a new pull request.
If you need to, you can also or
learn more about diff comparisons.
Open a pull request
Create a new pull request by comparing changes across two branches. If you need to, you can also .
Learn more about diff comparisons here.
base repository: ranaroussi/quantstats
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.0.70
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
head repository: ranaroussi/quantstats
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.0.71
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 6 commits
- 3 files changed
- 1 contributor
Commits on Aug 14, 2025
-
Fix RuntimeWarnings in tail_ratio function
- Handle divide by zero when lower quantile is 0 - Handle invalid values when quantiles return NaN - Return NaN gracefully instead of triggering warnings
Configuration menu - View commit details
-
Copy full SHA for 4ca6255 - Browse repository at this point
Copy the full SHA 4ca6255View commit details -
Configuration menu - View commit details
-
Copy full SHA for 80ae0c0 - Browse repository at this point
Copy the full SHA 80ae0c0View commit details -
Fix tail_ratio to handle DataFrame inputs properly
- Handle Series (multi-column) results from DataFrame.quantile() - Apply element-wise checks for NaN and zero values - Return Series for DataFrame input, scalar for Series input - Fixes ValueError when checking truth value of Series
Configuration menu - View commit details
-
Copy full SHA for e36103f - Browse repository at this point
Copy the full SHA e36103fView commit details -
Fix additional divide by zero warnings in stats functions
- Fix gain_to_pain_ratio: Handle case when no negative returns (downside=0) - Fix recovery_factor: Handle case when no drawdown (max_dd=0) - Both functions now return NaN instead of triggering warnings
Configuration menu - View commit details
-
Copy full SHA for 59d929f - Browse repository at this point
Copy the full SHA 59d929fView commit details -
Add comprehensive divide by zero protection across stats functions
Protected the following functions from divide by zero warnings: - sortino: Check for zero downside deviation - ulcer_performance_index: Check for zero ulcer index - serenity_index: Check for zero std and denominator - payoff_ratio: Check for zero average loss - outlier_win_ratio: Check for no positive returns - outlier_loss_ratio: Check for no negative returns - risk_return_ratio: Check for zero standard deviation - kelly_criterion: Check for zero or NaN win/loss ratio - greeks: Check for zero benchmark variance - rolling_greeks: Use replace(0, NaN) for benchmark std All functions now return NaN instead of triggering RuntimeWarnings
1Configuration menu - View commit details
-
Copy full SHA for 31b0ae4 - Browse repository at this point
Copy the full SHA 31b0ae4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74d2148 - Browse repository at this point
Copy the full SHA 74d2148View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.0.70...0.0.71