Skip to content

Commit 19d182c

Browse files
authored
update to_dataframe() warning (#2923)
1 parent c9f848a commit 19d182c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

darts/timeseries.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,10 +1800,11 @@ def to_dataframe(
18001800
if not self.is_deterministic:
18011801
if not suppress_warnings:
18021802
logger.warning(
1803-
"You are transforming a stochastic TimeSeries (i.e., contains several samples). "
1803+
"You are transforming a stochastic TimeSeries (it contains several samples). "
18041804
"The resulting DataFrame is a 2D object with all samples on the columns. "
1805-
"If this is not the expected behavior consider calling a function "
1806-
"adapted to stochastic TimeSeries like quantile_df()."
1805+
"If this is not the expected behavior, extract statistics from the TimeSeries "
1806+
"before calling `to_dataframe()` (e.g. with `TimeSeries.quantile()`, `mean()`, "
1807+
"...)."
18071808
)
18081809

18091810
comp_name = list(self.components)

0 commit comments

Comments
 (0)