Data Visualization (UCSD) Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

difference between explorative and declarative data viz

A

explorative - doesn’t need to be polished, just for exploring; declarative - presenting findings

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

goals for data viz

A

trustworthy, accessible, elegant

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

Plot a basic bar chart using column ‘year’ for X axis and ‘values’ for y-axis, from df ‘stage”

A

plt. bar( stage[‘year’], stage[‘values’] )

plt. show()

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

Plot a basic line chart using column ‘year’ for x axis and ‘values’ for y-axis, from df ‘stage”

A

plt. line( stage[‘year’], stage[‘values’])

plt. show()

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

Label the axes on a plot

A

plt. xlabel(‘Year’)

plt. ylabel(stage[‘IndicatorName’].iloc[0]) ## gets value from df in that col

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

label the figure

A

plt.title(‘CO2 Emissions in USA’)

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

start they y axis at 0

A

plt.axis([1959, 2011,0,25])

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

plot a histogram

A

hist_data = stage[‘Value’].values

plt.hist(hist_data, 10, density=False, facecolor=’green’)

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

What is the folium package

A

Allows you to do geographic overlays of data

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

When to use seaborn package?

A

Specialized statistical plots, like automatically fitting a linear regression with confidence interval or like scatter plots color-coded by category

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

packages with easier interfaces for plotting?

A

ggplot or altair

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

packages for interactive plots that can be exported as javascript

A

bokeh, plotly

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

package for realtime plots that update with streaming data

A

bokeh plot server

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

package for 3d plots

A

mplot3d

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