Skip to content

Commit

Permalink
docs(datasets): fix doctest syntax, and blacken it (#866)
Browse files Browse the repository at this point in the history
Signed-off-by: Deepyaman Datta <[email protected]>
Co-authored-by: L. R. Couto <[email protected]>
  • Loading branch information
deepyaman and lrcouto authored Oct 10, 2024
1 parent d0d9f86 commit 2b1228e
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ class ProphetModelDataset(JSONDataset):
>>> from prophet import Prophet
>>> import pandas as pd
>>>
>>> df = pd.DataFrame({
>>> "ds": ["2024-01-01", "2024-01-02", "2024-01-03"],
>>> "y": [100, 200, 300]
>>> })
>>> df = pd.DataFrame(
... {"ds": ["2024-01-01", "2024-01-02", "2024-01-03"], "y": [100, 200, 300]}
... )
>>>
>>> model = Prophet()
>>> model.fit(df)
Expand Down

0 comments on commit 2b1228e

Please sign in to comment.