Skip to content

Instantly share code, notes, and snippets.

@Muhammad-Yunus
Last active April 19, 2020 15:47
Show Gist options
  • Select an option

  • Save Muhammad-Yunus/18d951639d10a743d9cd214afff74bbf to your computer and use it in GitHub Desktop.

Select an option

Save Muhammad-Yunus/18d951639d10a743d9cd214afff74bbf to your computer and use it in GitHub Desktop.
CO_TS_TRAIN = CO_TS[CO_TS.index.month < 12] #january - november time series as train data
CO_TS_TEST = CO_TS[CO_TS.index.month == 12] #december time series as test data
CO_TS_TRAIN_Arr = CO_TS_TRAIN.to_numpy()
CO_TS_TEST_Arr = CO_TS_TEST.to_numpy()
CO_TS_TRAIN_Arr = np.reshape(CO_TS_TRAIN_Arr, (CO_TS_TRAIN_Arr.shape[0]))
CO_TS_TEST_Arr = np.reshape(CO_TS_TEST_Arr, (CO_TS_TEST_Arr.shape[0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment