We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f9d8e7 commit c6f9fd0Copy full SHA for c6f9fd0
2 files changed
pyproject.toml
@@ -27,6 +27,7 @@ matplotlib = ">=3.9.1"
27
scikit-learn = ">=1.5.2"
28
plotly = "^6.6.0"
29
jupyter = "^1.1.1"
30
+pandas = "^3.0.2"
31
32
[tool.poetry.group.dev.dependencies]
33
pytest = ">=8.2.2"
pysatl_cpd/core/data_providers/dataset.py
@@ -1,4 +1,3 @@
1
-# -*- coding: ascii -*-
2
"""
3
Терминология
4
-----------
@@ -183,7 +182,7 @@ def feature_columns(self) -> list[str]:
183
182
def change_point(self) -> tuple[int, ...]:
184
segments = self.__dataset[SEGMENT_COLUMN].to_numpy(copy=False)
185
if len(segments) <= 1:
186
- return tuple()
+ return ()
187
188
change_points = np.flatnonzero(segments[1:] != segments[:-1]) + 1
189
return tuple(int(position) for position in change_points.tolist())
0 commit comments