Skip to content

Commit

Permalink
For time frequencies, use 'h' instead of 'H' which is deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinecarme committed Jun 16, 2024
1 parent 160fe69 commit 51ea49c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/bugs/issue_179/issue_179_cumprod_overflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
N = 1000
lTimeVar = 'Time'
lSignalVar = 'Signal'
df[lTimeVar] = pd.date_range("2018-01-01", periods=N, freq="H")
df[lTimeVar] = pd.date_range("2018-01-01", periods=N, freq="h")
df[lSignalVar] = np.random.random(df.shape[0])
df.info()
print(df.head())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# generate a daily signal covering one year 2016 in a pandas dataframe
N = 365
np.random.seed(seed=1960)
df_train = pd.DataFrame({"Date" : pd.date_range(start="2016-01-25", periods=N, freq='H'),
df_train = pd.DataFrame({"Date" : pd.date_range(start="2016-01-25", periods=N, freq='h'),
"Signal" : (np.arange(N)//40 + np.arange(N) % 21 + np.random.randn(N))})
# print(df_train.head(N))

Expand Down

0 comments on commit 51ea49c

Please sign in to comment.