当我在quarto gfm报告中显示一个pandas表时,我在github中查看报告时会看到表上方的html代码.我该如何预防这种情况?
Code from Qmd file that created the above report
---
title: 'HTML junk'
author: 'Joseph Powers'
date: 2024-03-14
format: gfm
---
```{python}
import numpy as np
import pandas as pd
```
# Notice the html code above the table
```{python}
N = int(5e3)
TRIALS = int(1)
pd.DataFrame(
{
"A": np.random.binomial(TRIALS, 0.65, N),
"B": np.random.binomial(TRIALS, 0.65, N),
"C": np.random.binomial(TRIALS, 0.65, N),
"D": np.random.binomial(TRIALS, 0.67, N)
}
)
```