Skip to content

Commit c6f9fd0

Browse files
committed
chore: add pandas to pyproject.toml
1 parent 3f9d8e7 commit c6f9fd0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ matplotlib = ">=3.9.1"
2727
scikit-learn = ">=1.5.2"
2828
plotly = "^6.6.0"
2929
jupyter = "^1.1.1"
30+
pandas = "^3.0.2"
3031

3132
[tool.poetry.group.dev.dependencies]
3233
pytest = ">=8.2.2"

pysatl_cpd/core/data_providers/dataset.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: ascii -*-
21
"""
32
Терминология
43
-----------
@@ -183,7 +182,7 @@ def feature_columns(self) -> list[str]:
183182
def change_point(self) -> tuple[int, ...]:
184183
segments = self.__dataset[SEGMENT_COLUMN].to_numpy(copy=False)
185184
if len(segments) <= 1:
186-
return tuple()
185+
return ()
187186

188187
change_points = np.flatnonzero(segments[1:] != segments[:-1]) + 1
189188
return tuple(int(position) for position in change_points.tolist())

0 commit comments

Comments
 (0)