Add portfolio analysis script and update dependencies

- Created a new Python script for portfolio analysis using historical stock data.
- Implemented functions for normality testing of prices and returns.
- Added histogram plots for prices and returns.
- Included logic for random portfolio allocation and efficient frontier calculation.
- Updated `pyproject.toml` to include `pandas-stubs` for type hinting support.
- Modified `uv.lock` to reflect the addition of `pandas-stubs` and its dependencies.
This commit is contained in:
2025-10-08 11:08:26 +02:00
parent 38d60dfa3e
commit 61c560fda2
4 changed files with 8778 additions and 2 deletions

View File

@@ -12,6 +12,7 @@ dependencies = [
"numpy>=2.2.5",
"opencv-python>=4.11.0.86",
"pandas>=2.2.3",
"pandas-stubs>=2.3.2.250926",
"plotly>=6.3.0",
"scikit-learn>=1.6.1",
"scipy>=1.15.2",
@@ -48,6 +49,7 @@ select = [
# Désactiver certaines règles
ignore = [
"E501", # line too long, géré par le formatter
"E402", # Imports in top of file
]
# Exclure certains fichiers ou répertoires
@@ -79,5 +81,5 @@ fixable = ["ALL"]
unfixable = []
# Formatage des imports
[isort]
known-third-party = ["pydantic", "django"]
[tool.isort]
known_third_party = ["pydantic", "django"]