Skip to content
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
e5ac43d
Fix typos and whitespace
robertmartin8 May 19, 2025
b974e1a
[MNT] skip failing tests on `main` (#643)
fkiraly Nov 8, 2025
9977525
[MNT] fix all URLs and `main` branch references after move to new org…
fkiraly Nov 8, 2025
5060d02
[MNT] python 3.14 compatibility, python 3.9 end-of-life (#646)
fkiraly Nov 10, 2025
3329d84
[MNT] remove dockerfile (#648)
tschm Nov 10, 2025
929eb31
[MNT] CI: concurrency and no fail-fast (#660)
fkiraly Nov 10, 2025
d84abc4
[MNT] move packaging to `pyproject.toml` (#659)
fkiraly Nov 10, 2025
84b4d24
[MNT] move CI installs to `uv` (#661)
fkiraly Nov 10, 2025
4f116ce
[MNT] CI action for installing uv/uvx (#654)
tschm Nov 11, 2025
73b4d26
Update GeneralEfficientFrontier.rst (#630)
avances123 Nov 11, 2025
6de3975
[DOC] improvements to README.md (#658)
tschm Nov 13, 2025
da936af
[MNT] raise `plotly` bound to `plotly<7` to support `plotly 6.X` (#632)
ms32035 Nov 14, 2025
1a63132
[MNT] test cookbook notebooks (#665)
tschm Nov 14, 2025
e3036da
[MNT] moving linting to `ruff`, adding `editorconfig` (#653)
tschm Nov 14, 2025
8a0bb50
[MNT] merge all PR CI jobs into one workflow (#673)
fkiraly Nov 14, 2025
15bcaa9
[MNT] testing package without soft dependencies, isolate `matplotlib`…
fkiraly Nov 14, 2025
e88bf31
[MNT] restore `requirements.txt` for downwards compatibility (#675)
fkiraly Nov 14, 2025
4c5f94b
[MNT] Isolate `scikit-learn` dependency with checks (#674)
fkiraly Nov 15, 2025
6c9a1d6
Merge branch 'main' into m3qxki-codex/fix-spelling-and-run-flake8
fkiraly Nov 16, 2025
6b3d708
Revert "Merge branch 'main' into m3qxki-codex/fix-spelling-and-run-fl…
fkiraly Nov 16, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pypfopt/efficient_frontier/efficient_frontier.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _validate_returns(self, returns):
Helper method to validate daily returns (needed for some efficient frontiers)
"""
if not isinstance(returns, (pd.DataFrame, np.ndarray)):
raise TypeError("returns should be a pd.Dataframe or np.ndarray")
raise TypeError("returns should be a pd.DataFrame or np.ndarray")

returns_df = pd.DataFrame(returns)
if returns_df.isnull().values.any():
Expand All @@ -163,10 +163,10 @@ def _validate_returns(self, returns):
def _make_weight_sum_constraint(self, is_market_neutral):
"""
Helper method to make the weight sum constraint. If market neutral,
validate the weights proided in the constructor.
validate the weights provided in the constructor.
"""
if is_market_neutral:
#  Check and fix bounds
# Check and fix bounds
portfolio_possible = np.any(self._lower_bounds < 0)
if not portfolio_possible:
warnings.warn(
Expand Down
Loading