Skip to content

Commit

Permalink
Update sklearn_questions v4.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico9803 authored Dec 19, 2023
1 parent ff3a909 commit 11ea637
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sklearn_questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ def get_n_splits(self, X, y=None, groups=None):
n_splits : int
The number of splits.
"""

if self.time_col == "index":
if not is_datetime64_any_dtype(X.index):
raise ValueError("it is not datetime")
Expand Down

0 comments on commit 11ea637

Please sign in to comment.