Skip to content

Commit cfb7ce8

Browse files
authored
Update index.md
1 parent bd9e86a commit cfb7ce8

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

docs/04_visualizations/2-1-bar/index.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,7 @@ sidebar_position: 2.1
2525
2. 系列字段需要为数值类型
2626

2727
```sql
28-
# 创建 DataFrame
29-
data = query('select * from yearly.a0806')
30-
31-
# 转换为 DataFrame
32-
df = DataFrame(data)
33-
34-
df = df.pivot(index="day", columns="name", values="value")
35-
36-
# 查看数据
37-
return df.sort_values('day')
28+
select toDateTime(Time/1000) as Time, * from klines.spot_1d where Symbol = 'btc_usdt' and Exchange = 'Binance' order by Time limit 100
3829
```
3930

4031
## 显示设置

0 commit comments

Comments
 (0)