-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug 🐛] Table not shown when inside a quote #5494
Comments
Generate as normal
Generate under "Safe mode"
|
🛠️ Temporary walkaroundRewrite the table with HTML syntax directly. - 问题:请使用 *Prophet* 对 `train_df` 数据建模,预测后 30 天的结果。并回答 1 月 20 日当天的预测结果是多少?
> ```python
> from fbprophet import Prophet
>
> model = Prophet()
> model.fit(train_df)
> pred_df = model.make_future_dataframe(periods=30, freq='D', include_history=False)
> pred_df = model.predict(pred_df)
> pred_df[['ds', 'yhat']]
> ```
>
> 通过以上的建模预测,我们可以得到如下表格:
>
> <table style="text-align: center;">
> <thead>
> <tr><th>ds</th><th>yhat</th></tr>
> </thead>
> <tbody>
> <tr><td>2015-12-22</td><td>3385.507108</td></tr>
> <tr><td>......</td><td>......</td></tr>
> <tr><td>2016-01-20</td><td>3426.449686</td></tr>
> </tbody>
> </table>
>
> 因此,1月20日当天的预测结果约为3426次。 |
I didn't find |
I've changed my Thanks for your help ❤️ Markdown content# 时间序列分析应用练习
## 数据集
- 下载地址:[阿里云 OSS 服务](https://labfile.oss.aliyuncs.com/courses/1283/wiki_machine_learning.csv)
- 来源:维基百科特定词条每日浏览量
## Prophet 建模预测
在 *Pandas* 中,数据集的时间字段会默认以 `object` 数据类型载入,需要调用 `pandas.to_datetime()` 函数将字段转换为可用于时间计算的 `datetime` 数据类型。
- 问题:请使用 *Prophet* 对 `train_df` 数据建模,预测后 30 天的结果。并回答 1 月 20 日当天的预测结果是多少?
> ```python
> from fbprophet import Prophet
>
> model = Prophet()
> model.fit(train_df)
> pred_df = model.make_future_dataframe(periods=30, freq='D', include_history=False)
> pred_df = model.predict(pred_df)
> pred_df[['ds', 'yhat']]
> ```
>
> 通过以上的建模预测,我们可以得到如下表格:
>
> | ds | yhat |
> |:----------:|:-----------:|
> | 2015-12-22 | 3385.507108 |
> | ...... | ...... |
> | 2016-01-20 | 3426.449686 |
>
> 因此,1月20日当天的预测结果约为3426次。
|
- 详见 hexojs/hexo#5494 - 此问题可能来自 `hexo-renderer-kramed` - 切换为 `hexo-renderer-markdown-it` ,问题不可复现 Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com>
Check List
hexo version
to check)Expected behavior
When there's a table in a quote, the table should be rendered as normal.
GitHub
问题:请使用 Prophet 对
train_df
数据建模,预测后 30 天的结果。并回答 1 月 20 日当天的预测结果是多少?Typora
Vuepress (with theme Vdoing)
Actual behavior
The table did not render as expected.
Hexo (with theme Butterfly)
How to reproduce?
yarn dlx hexo init
.yarn set version berry && yarn set version latest
.hexo-theme-butterfly
and switch to this theme in_config.yml
.public/
folder with any web server, visit the post. You may reproduce this issue.Is the problem still there under
Safe mode
?Nope. Hexo will not compile my posts under "Safe mode".
Your Node.js & npm version
Your Hexo and Plugin version
Your
package.json
Your site's
_config.yml
(Optional)Others
No response
The text was updated successfully, but these errors were encountered: