* fix: use baostock to fetch trading calendar instead of Eastmoney API
* fix: lint error
* fix: lint error
* ci: enable concurrency to cancel in-progress runs for same workflow and ref
---------
Co-authored-by: Linlang Lv (iSoftStone Information) <v-llv@microsoft.com>
* [fix] handler_mod func don't work when dealing None end date
* refactor: avoid deep access by extracting handler_kwargs and using get(end_time)
---------
Co-authored-by: Linlang <Lv.Linlang@hotmail.com>
* fix(client): fix missing dependencies and unsafe pickle usage
* ci: exclude client extra from default install to avoid macOS CI failures
* fix: CI error
* ci: install dependencies with --no-cache-dir to avoid disk space issues
* dont manually call setuptools_scm - its integrated
setuptools_scm automatically set the version attribute - manually setting it wrong
* fix(docs): set fallback version for setuptools-scm to fix autodoc import errors on Read the Docs
---------
Co-authored-by: SunsetWolf <Lv.Linlang@hotmail.com>
* fix: replace deprecated pandas fillna(method=) with ffill()/bfill()
Replace deprecated fillna(method="ffill"/"bfill") calls with modern
pandas ffill() and bfill() methods to fix FutureWarnings in pandas 2.x.
Also includes black formatting fixes for compliance.
This addresses the pandas deprecation warnings portion of issue #1981.
Other issues (date parsing, type conversion, timezone handling) will be
addressed in separate commits.
Fixes:
- Yahoo collector: 2 instances in calc_change() and adjusted_price()
- BaoStock collector: 1 instance in calc_change()
- Core utils: resam.py fillna operations
- Backtest: profit_attribution.py stock data processing
- High-freq ops: FFillNan and BFillNan operators
- Position analysis: parse_position.py weight processing
Partially addresses GitHub issue #1981
* lint with black
* lint with black
* limit minimum version of pandas
* limit minimum version of pandas
---------
Co-authored-by: Linlang <Lv.Linlang@hotmail.com>
* ci: auto release
* fix: bug getting version in qlib/__init__.py
* fix: bug getting version in setup.py
* fix: bug getting version in qlib/__init__.py
* fix: make the code in CI more complete
* fix: specify the root directory in the get_verison method
* fix: parameter error
* update: optimize code && add comments
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* fix: upgrade the method of installing LightGBM on MacOS
* add: comments
* test: build package && check package
* test: build package && check package
* test: build package && check package
* optimize yml
* refactor: introduce BaseDataHandler and unify fetch interface
* refactor: include data_key in seg_kwargs and simplify segments loop
* refactor: default data_key to BaseDataHandler.DK_I in _get_df_by_key
* style: fix indentation and remove extra blank lines in data handlers
* refactor: use BaseDataHandler.DK_I as default data_key
* docs: fix BaseDataHandler docstring grammar and formatting
* refactor: remove unused **kwargs from storage fetch methods
* docs: refine BaseDataHandler and DataHandler docstrings
* refactor: rename BaseDataHandler to DataHandlerABC, update type hints
* feat: add flt_col to TSDatasetH and list-to-slice conversion in storage
* lint
* comment
* Fixing Security Vulnerabilities
* Fixing Pylint Error
* Fixing Security Vulnerabilities windows
* format with black
* using returncode to locate problems
* fix pylint error
* Update detailed_workflow.ipynb
the result figure is empty
* Update detailed_workflow.ipynb
fix issue: the plotly figure is empty
* The error message indicated that my code did not
comply with the code style guidelines.
Specifically, I had used double quotes "notebook"
for the string, whereas the required format was
single quotes 'notebook'.
This has now been corrected.
* comply with the code style guidelines.
Specifically, I had used double quotes "notebook"
for the string, whereas the required format was
single quotes 'notebook'.
This has now been corrected.
* I didn't use nbqa black to reformat my code. Now
is done!
* recover_code
---------
Co-authored-by: Linlang <Lv.Linlang@hotmail.com>
* fixed a problem with multi index caused by the default value of groupkey
* modify group_key default value
* limit pandas verion
* format with black
* fix docs error
* fix docs error
* fixed bugs caused by pandas upgrade
* remove needless code
* reformat with black
* limit version & add docs