Skip to content

Commit 85b99b3

Browse files
committed
Revert code change
1 parent 2528b86 commit 85b99b3

File tree

3 files changed

+649
-122
lines changed

3 files changed

+649
-122
lines changed

bigframes/ml/forecasting.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
from __future__ import annotations
1818

1919
from typing import List, Optional
20-
import warnings
2120

2221
from google.cloud import bigquery
2322

@@ -231,18 +230,6 @@ def _fit(
231230
"""
232231
X, y = utils.batch_convert_to_dataframe(X, y)
233232

234-
# Auto-convert Date to datetime for hourly/per_minute frequency
235-
if self.data_frequency in ["hourly", "per_minute"]:
236-
timestamp_col = X.columns[0]
237-
if "date" in X[timestamp_col].dtype.name:
238-
warnings.warn(
239-
f"Converting Date column '{timestamp_col}' to datetime for "
240-
f"{self.data_frequency} frequency. This is required because "
241-
f"BigQuery ML doesn't support Date type with hourly frequency."
242-
)
243-
X = X.copy()
244-
X[timestamp_col] = bpd.to_datetime(X[timestamp_col])
245-
246233
if X.columns.size != 1:
247234
raise ValueError("Time series timestamp input X contain at least 1 column.")
248235
if y.columns.size != 1:

0 commit comments

Comments
 (0)