Skip to content

Commit

Permalink
fix: replaced FutureWarned T with min
Browse files Browse the repository at this point in the history
  • Loading branch information
sTomerG committed Sep 20, 2024
1 parent 14ae2f4 commit 3121779
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 3121779

Please sign in to comment.