facebook / facebook/prophet

tick_w = max(df_none['horizon'].astype('timedelta64[ns]')) / 10.

Open
#2,465 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
20.4k
Forks
4.6k
Avg merge
19h 52m
Merged PRs (30d)
1

Description

I just installed prophet on Anaconda in a 64 bit machine. When executing plot_cross_validation_metric(df,metric='mape')

I get

File ~\anaconda3\Lib\site-packages\prophet\plot.py:524, in plot_cross_validation_metric(df, metric, rolling_window, ax, figsize, color, point_color)
520 df_h = performance_metrics(df, metrics=[metric], rolling_window=rolling_window)
522 # Some work because matplotlib does not handle timedelta
523 # Target ~10 ticks.
--> 524 tick_w = max(df_none['horizon'].astype('timedelta64[ns]')) / 10.
525 # Find the largest time resolution that has <1 unit per bin.
526 dts = ['D', 'h', 'm', 's', 'ms', 'us', 'ns']

TypeError: 'NoneType' object is not subscriptable

I even reverted to a previous version 1.1.3 and it causes the same error.

Please advise.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.