Skip to content

Commit

Permalink
Added support for ndarrays for featurizer
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherbunn committed Jan 31, 2024
1 parent e49dfa5 commit 701eef6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ def fit(self, X, y=None):
)
else:
# For the multiseries case, each series ID has individualized lag values
if isinstance(y, pd.Series):
y = y.to_frame()
if isinstance(y, pd.Series) or isinstance(y, np.ndarray):
y = pd.DataFrame(y)

self.statistically_significant_lags = {}
for column in y.columns:
self.statistically_significant_lags[
Expand Down

0 comments on commit 701eef6

Please sign in to comment.