![](/img/trans.png)
[英]Python Vscode extension - can't change remote jupyter notebook kernel
[英]Can I change the look of pandas data frame in vscode jupyter notebook?
Panda 的to_markdown函數需要在 python 中安裝tabulate庫,為在 VS Code Jupyter 編輯器上顯示的表格提供各種純文本格式,例如:
df = pd.DataFrame(data={"animal_1": ["elk", "pig"], "animal_2": ["dog", "quetzal"]})
print(df.to_markdown())
| | animal_1 | animal_2 |
|---:|:-----------|:-----------|
| 0 | elk | dog |
| 1 | pig | quetzal |
我遇到了同樣的情況,並嘗試將筆記本擴展設置為默認值。 它適用於我的情況。 你可以在這里看到細節!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.