-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample2.qmd
50 lines (44 loc) · 923 Bytes
/
sample2.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
title: "Quarto sample2"
format:
html:
code-fold: true
jupyter: python3
---
- This is Quarto sample.
- これはQuartoのサンプルです。
### print
```{python}
print('Hello, world!')
```
### 計算
```{python}
a=3
b=5
a+b
```
### 表
```{python}
import pandas as pd
price_list=pd.DataFrame({"お品物":["牛丼","ラーメン"],"値段(円)":["300","400"]})
price_list
```
### グラフの描画
```{python}
import numpy as np
import plotly.graph_objects as go
N = 30
t=np.linspace(0,1,N)
x0=np.cos(t*4*np.pi)
y0=np.sin(t*4*np.pi)
z0=t*10
fig = go.Figure(data=[go.Scatter3d(x=x0, y=y0, z=z0,
mode='markers',
marker=dict(
size=3,
color=z0,
colorscale='mygbm',
opacity=0.7
))])
fig
```