Python interactive visualization Flashcards

1
Q

from plotly import __version__
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot

A

Importuojama plotly biblioteka

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

import cufflinks as cf
init_notebook_mode(connected=True)
cf.go_offline()

A

Importuojama cufflinks biblioteka

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

df.iplot()

A

Sukuriama paprasta vingiuota tiesine diagrama

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

df.iplot(kind=’scatter’,x=’A’,y=’B’,mode=’markers’,size=10)

A

Sukuriama interaktyvi scatter diagrama su nustatytais nustatymais

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

df2.iplot(kind=’bar’,x=’Category’,y=’Values’)

A

Interaktyvi stulpeline diagrama

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

df.iplot(kind=’box’)

A

Box diagrama

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

df3 = pd.DataFrame({‘x’:[1,2,3,4,5],’y’:[10,20,30,20,10],’z’:[5,4,3,2,1]})
df3.iplot(kind=’surface’,colorscale=’rdylbu’)

A

3D diagrama

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

df[[‘A’,’B’]].iplot(kind=’spread’)

A

Sukuriama tiesine diagrama ,dazniausiai naudojama stock markete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

df.iplot(kind=’bubble’,x=’A’,y=’B’,size=’C’)

A

Sukuriama taskeline diagrama

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

df.scatter_matrix()

A

Sukuriama 4X4 matrica ,kur pagrindine istrizaines elementai yra stulpeline diagrama ,o likusieji scatter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

df = pd.read_csv(‘2014_World_GDP’)
df.head()
data = dict(
type = ‘choropleth’,
locations = df[‘CODE’],
z = df[‘GDP (BILLIONS)’],
text = df[‘COUNTRY’],
colorbar = {‘title’ : ‘GDP Billions US’},
)
layout = dict(
title = ‘2014 Global GDP’,
geo = dict(
showframe = False,
projection = {‘type’:’Mercator’}
)
)
choromap = go.Figure(data = [data],layout = layout)
iplot(choromap)

A

Sukuriamas interaktyvaus zemelapio diagrama

How well did you know this?
1
Not at all
2
3
4
5
Perfectly