FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
materials/altair-python/scatter_basic.py at github-copilot-sdk · realpython/materials · GitHub
realpython
materials
Repository navigation
Code
Issues
39
(39)
Pull requests
61
(61)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
materials
/
altair-python
/
scatter_basic.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (18 loc) · 325 Bytes
Breadcrumbs
materials
/
altair-python
/
scatter_basic.py
Copy path
File metadata and controls
20 lines (18 loc) · 325 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import
altair
as
alt
from
altair
.
datasets
import
data
movies
=
data
.
movies
()
movies
=
movies
.
dropna
(
subset
=
[
"Production Budget"
,
"Worldwide Gross"
,
]
)
scatter
=
(
alt
.
Chart
(
movies
)
.
mark_point
()
.
encode
(
x
=
"Production Budget:Q"
,
y
=
"Worldwide Gross:Q"
,
)
)
scatter
Back
|
FazBrowse Home
|
New Git URL