我正在尝试在所有幻灯片的 Revealjs 演示文稿中激活垂直滚动选项。
我尝试直接在 .Rmd 中的 css 中添加溢出选项,这使得滚动条出现在演示文稿上,但我的幻灯片仍然溢出,并且无法向下滚动。
我在这里做错了什么?谢谢
---
title: "Untitled"
author: ""
date: "16 August 2018"
output: revealjs::revealjs_presentation
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
```
```{css}
body {
overflow: scroll;
}
```
# R Markdown
## Slide with Bullets
This is a very very very long slide.
Very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very …Run Code Online (Sandbox Code Playgroud) 我有一个很长的数据帧,其中包含多个不重叠的时间序列。
import numpy as np
import pandas as pd
df = pd.DataFrame({'id':[1,1,1,1,1,2,2,2,2,2,2],
't':[0,1,2,3,4,2,3,4,5,6,7],
'price':[10,10.2,10.8,10.1,10.4,142.1,142.8,143.6,142.8,141.4,140.7]})
Run Code Online (Sandbox Code Playgroud)
df 看起来像这样
Out[65]:
id t price
0 1 0 10.0
1 1 1 10.2
2 1 2 10.8
3 1 3 10.1
4 1 4 10.4
5 2 2 142.1
6 2 3 142.8
7 2 4 143.6
8 2 5 142.8
9 2 6 141.4
10 2 7 140.7
Run Code Online (Sandbox Code Playgroud)
对于 ID 为 1 的时间序列,缺失的时间戳为 5,6 和 7,时间序列 #2 缺失时间戳 0 和 1。
我想填充数据框中所有时间序列的缺失日期,以便所有时间序列的所有日期都用 nan 填充: …
css ×1
dataframe ×1
javascript ×1
pandas ×1
python ×1
r ×1
r-markdown ×1
reveal.js ×1
time-series ×1