Skip to content

Commit

Permalink
second try
Browse files Browse the repository at this point in the history
  • Loading branch information
lhteillet committed Dec 19, 2023
1 parent 175c78f commit 7eb3430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklearn_questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def split(self, X, y, groups=None):
"""
X_copy = X.reset_index()
if X_copy[self.time_col].dtype != 'datetime64[ns]':
raise ValueError("'{}' not adatetime.".format(self.time_col))
raise ValueError("'{}' not a datetime.".format(self.time_col))
n_splits = self.get_n_splits(X_copy, y, groups)
g_test = X_copy.sort_values(by=self.time_col).groupby(
pd.Grouper(
Expand Down

0 comments on commit 7eb3430

Please sign in to comment.