Skip to content

Commit

Permalink
Merge pull request #11 from sTomerG/fix/futurewarning-T-is-deprecated
Browse files Browse the repository at this point in the history
Update date range frequency from '15T' to '15min' in example data generation and fixture files
  • Loading branch information
leonoverweel authored Sep 26, 2024
2 parents f7bbcff + 3121779 commit c8e0781
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/data/generate_example_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def generate_example_data():
index=pd.date_range(
start="2023-01-01",
end="2023-12-31",
freq="15T",
freq="15min",
tz="Europe/Amsterdam",
name="datetime",
),
Expand Down
17 changes: 13 additions & 4 deletions tests/fixtures/dt_index_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,35 @@
@pytest.fixture
def idx_ams_2022():
return pd.date_range(
start="2022-01-01", end="2022-12-31 23:45:00", freq="15T", tz="Europe/Amsterdam"
start="2022-01-01",
end="2022-12-31 23:45:00",
freq="15min",
tz="Europe/Amsterdam",
).tz_localize(None)


@pytest.fixture
def idx_ams_2023():
return pd.date_range(
start="2023-01-01", end="2023-12-31 23:45:00", freq="15T", tz="Europe/Amsterdam"
start="2023-01-01",
end="2023-12-31 23:45:00",
freq="15min",
tz="Europe/Amsterdam",
).tz_localize(None)


@pytest.fixture
def idx_ny_2023():
return pd.date_range(
start="2023-01-01", end="2023-12-31 23:45:00", freq="15T", tz="America/New_York"
start="2023-01-01",
end="2023-12-31 23:45:00",
freq="15min",
tz="America/New_York",
).tz_localize(None)


@pytest.fixture
def idx_utc_2023():
return pd.date_range(
start="2023-01-01", end="2023-12-31 23:45:00", freq="15T", tz="UTC"
start="2023-01-01", end="2023-12-31 23:45:00", freq="15min", tz="UTC"
).tz_localize(None)

0 comments on commit c8e0781

Please sign in to comment.