Skip to content

Commit

Permalink
pandas 2.2.0: Deprecated frequency alias M in favor of ME (#8473)
Browse files Browse the repository at this point in the history
  • Loading branch information
hendrikmakait authored Jan 22, 2024
1 parent 6d4b409 commit f248860
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions distributed/tests/test_dask_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import dask
import dask.bag as db
import dask.dataframe as dd
from dask.dataframe._compat import PANDAS_GE_220

from distributed.client import wait
from distributed.nanny import Nanny
Expand Down Expand Up @@ -139,12 +140,13 @@ async def test_bag_groupby_key_hashing(c, s, a, b):

@pytest.mark.parametrize("wait", [wait, lambda x: None])
def test_dataframe_set_index_sync(wait, client):
partition_freq_unit = "ME" if PANDAS_GE_220 else "M"
df = dask.datasets.timeseries(
start="2000",
end="2001",
dtypes={"value": float, "name": str, "id": int},
freq="2H",
partition_freq="1M",
freq="2h",
partition_freq=f"1{partition_freq_unit}",
seed=1,
)
df = df.persist()
Expand Down

0 comments on commit f248860

Please sign in to comment.