time-split 0.2.0__tar.gz → 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {time_split-0.2.0 → time_split-0.2.1}/PKG-INFO +1 -1
- {time_split-0.2.0 → time_split-0.2.1}/pyproject.toml +1 -1
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/__init__.py +1 -1
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_limits.py +1 -1
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/pandas/_impl.py +4 -4
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/polars/_impl.py +1 -1
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/settings.py +1 -1
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/types.py +4 -4
- {time_split-0.2.0 → time_split-0.2.1}/LICENSE.md +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/README.md +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/__init__.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_datetime_index_like.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_process_available.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_schedule.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_span.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_splitter.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_docstrings.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/__init__.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/_plot.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/_progress.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/_split.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/_to_string.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/_weight.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_support.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/__init__.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/_log_progress.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/pandas/__init__.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/polars/__init__.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/sklearn/__init__.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/sklearn/_impl.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/split_data.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/py.typed +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/support/__init__.py +0 -0
- {time_split-0.2.0 → time_split-0.2.1}/src/time_split/support/types.py +0 -0
|
@@ -21,7 +21,7 @@ def expand_limits(limits: LimitsTuple, *, flex: Flex | LevelTuple | Iterable[Lev
|
|
|
21
21
|
"""Derive the `"real"` bounds of `limits`.
|
|
22
22
|
|
|
23
23
|
Args:
|
|
24
|
-
limits: A tuple ``(
|
|
24
|
+
limits: A tuple ``(min, max)`` of timestamps.
|
|
25
25
|
flex: Flex arguments as described in the :ref:`User guide`. Also supports level-tuples
|
|
26
26
|
``[(start_at, round_to, tolerance)...]``. Passing ``flex=[settings.auto_flex.day, settings.auto_flex.hour]``
|
|
27
27
|
is equivalent to ``flex='auto'``.
|
|
@@ -24,12 +24,12 @@ def split_pandas(
|
|
|
24
24
|
) -> Iterable[DatetimeSplit[PandasT]]:
|
|
25
25
|
"""Split a pandas type.
|
|
26
26
|
|
|
27
|
-
This function splits indexed data (i.e. ``Series`` and ``DataFrame
|
|
28
|
-
:func:`time_split.split
|
|
27
|
+
This function splits indexed data (i.e. ``Series`` and ``DataFrame``), not the index itself. Use
|
|
28
|
+
:func:`time_split.split` for pandas ``Index`` types, setting ``available=data.index``.
|
|
29
29
|
|
|
30
30
|
Args:
|
|
31
31
|
data: A pandas data container type to split; either ``Series`` or a ``DataFrame``.
|
|
32
|
-
time_column: A column in `data` to split on. Use ``data
|
|
32
|
+
time_column: A column in `data` to split on. Use ``data.index`` if ``None``.
|
|
33
33
|
log_progress: {log_progress}
|
|
34
34
|
**kwargs: {DatetimeIndexSplitterKwargs}
|
|
35
35
|
|
|
@@ -39,7 +39,7 @@ def split_pandas(
|
|
|
39
39
|
Tuples ``(data, future_data, bounds)``.
|
|
40
40
|
|
|
41
41
|
Raises:
|
|
42
|
-
TypeError: If `time_column`
|
|
42
|
+
TypeError: If `time_column` is not datetime-like.
|
|
43
43
|
|
|
44
44
|
"""
|
|
45
45
|
indexer = _Indexer(time_column)
|
|
@@ -8,7 +8,7 @@ from . import types as _tst
|
|
|
8
8
|
class auto_flex: # noqa: N801
|
|
9
9
|
"""Configuration for the `'auto'` :attr:`~time_split.types.Flex` logic.
|
|
10
10
|
|
|
11
|
-
This class determines how ``(
|
|
11
|
+
This class determines how ``(min, max)``-tuples are expanded when flexible bounds are enabled.
|
|
12
12
|
"""
|
|
13
13
|
|
|
14
14
|
SANITY_CHECK: bool = True
|
|
@@ -27,7 +27,7 @@ class DatetimeSplitBounds(_t.NamedTuple):
|
|
|
27
27
|
start: _pd.Timestamp
|
|
28
28
|
"""Left (inclusive) limit of the `data` range."""
|
|
29
29
|
mid: _pd.Timestamp
|
|
30
|
-
"""Schedule timestamp.
|
|
30
|
+
"""Schedule timestamp; simulated :attr:`~.DatetimeSplit.training_date`.
|
|
31
31
|
|
|
32
32
|
Right (exclusive) limit of the `data` range, left (inclusive) limit of the `future_data` range.
|
|
33
33
|
|
|
@@ -50,10 +50,10 @@ class DatetimeSplitCounts(_t.NamedTuple):
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
class DatetimeIndexSplitterKwargs(_t.TypedDict, total=False):
|
|
53
|
-
"""Keyword arguments for
|
|
53
|
+
"""Keyword arguments for :class:`~time_split.support.DatetimeIndexSplitter`.
|
|
54
54
|
|
|
55
|
-
The
|
|
56
|
-
|
|
55
|
+
The ``DatetimeIndexSplitter`` is a backend implementation. In most cases, it should not be used directly. See
|
|
56
|
+
:func:`time_split.split` or one of the related functions for user-facing APIs.
|
|
57
57
|
"""
|
|
58
58
|
|
|
59
59
|
schedule: _t.Required[Schedule]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|