Data Visualization Flashcards

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

What is matplotlib

A

A library that specializes in data visualization. The oldest and by far the most popular python plotting library

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

How to import matplotlib library

A

import matplotlib.pyplot as plt

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

Function used to create line graphs

A

plt.plot()

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

Function used to create bar graphs

A

plt.bar()

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

Function used to create a scatter plot

A

plt.scatter()

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

What are Histograms?

A

It is a common practice to create histograms to explore your data as it can give you a general idea of what your data looks like

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

How to create histogram chart?

A

By entering in this function with value
df[‘Object’].hist()

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

How to remove scientific notation?

A

df[‘object’].hist()
plt.tickable_format(useOffset=False, style=’plain’)

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

How to address overlapping after removing scientific notation

A

df[‘object’].hist()
plt.xticks(rotation = 45)
plt.ticklabel_format(useOffset=False, style=’plain’)

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

What are bins in histogram?

A

Each bin is a plotted bar whose height corresponds to how many data points are in that bin

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

What are Boxplots?

A

A boxplot is a standardized way of displaying the distribution of data based on a five number summary(min,median,max). It can tell you about your outliers and what their values are.

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

How to use seaborn boxplot

A

sns.boxplot(x=’categorical’, y=’numerical’, pallet=’blugrn’)

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

What does correlated mean?

A

As a data scientist, we are often interested in if (and how) different features of a dataset may be related. For numerical data, one key way to describe a relationship is the correlation

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

How to check for correlation in python?

A

By using df.corr() function

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

What is exploratory visualization?

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

What is explanatory visualization?

A

To explain and tell a story to your audience with data

17
Q

Function used to find the different aesthetic styles available for your figures?

A

plt.style.available this will pull up all the styles you can use

18
Q

How to use the plt.sryle function

A

You can use it as plt.style.use(‘’)
And then plt.plot([],[]) to display