Skip to content

Installation 💻

timebasedcv is a published Python package on pypi, therefore it can be installed directly via pip, as well as from source using pip and git, or with a local clone:

python -m pip install timebasedcv
python -m pip install git+https://github.com/FBruzzesi/timebasedcv.git
git clone https://github.com/FBruzzesi/timebasedcv.git
cd timebasedcv
python -m pip install .

Dependencies 👏

Info

The minimum Python version supported is 3.8.

  • Since v0.1.0, the only two dependencies are numpy and narwhals>=1.0.0.

    Narwhals allows to have a compatibility layer between polars, pandas and other dataframe libraries. Therefore, as long as narwhals supports such dataframe object, we will as well.

  • Since v0.2.0, in order to use TimeBasedCVSplitter, scikit-learn>=0.19 is required, nevertheless it is not a direct dependency of the package.