Skip to content

Commit

Permalink
use the proper timeseries version
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzamora committed Apr 4, 2024
1 parent daeb64b commit e98e43c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dask/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,24 @@ def timeseries(
... id_lam=1000 # control number of items in id column
... )
"""
from dask.dataframe import _dask_expr_enabled

if _dask_expr_enabled():
try:
from dask_expr.datasets import timeseries as _timeseries

return _timeseries(
start=start,
end=end,
freq=freq,
partition_freq=partition_freq,
dtypes=dtypes,
seed=seed,
**kwargs,
)
except ImportError:
pass

from dask.dataframe.io.demo import make_timeseries

if dtypes is None:
Expand Down

0 comments on commit e98e43c

Please sign in to comment.