Seaborn and MatPlotLib Flashcards

Commands and formatting for Seaborn and MatPlotLib functions and calls. (11 cards)

1
Q

Format a correlation matrix

A

DataFrame[[‘col1’, ‘col2’, …]].corr(numeric_only=True)

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

What does a Boxplot tell you?

A

Identifies the Statistical 5, Min, Max, Quartiles and Outliers.

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

What does KDE stand for?

A

Kernal Density …

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

What does IQR stand for?

A

Inter-Quartile Range

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

Calculate the whiskers in a numerical column

A

Min whisker = Q1-1.5IQR
Max whisker = Q3+1.5
IQR

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

What are the 3 missing value types and their acronyms?

A

Missing Completely at Random (MCAR)
Missing at Random (MAR)
Missing Not at Random (MNAR)

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

Format a Joint Plot and identify what it’s best used for.

A

sns.jointplot(data=DataFrame, vals=list_columns)

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

What are the functions that set labels and denominations for the x and y axis marks?

A

matplotlib.pyplot.xticks() and matplotlib.pyplot.yticks()
plt.xticks(<range_of_numeric_values>, <columns/tick_labels>, rotation=?)</range_of_numeric_values>

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

What function would you use to display a heat/color map in matplotlib?

A

plt.imshow()
plt.imshow(X=input_data, cmap=color_map, interpolation=<method_used_to_display_an_image>)</method_used_to_display_an_image>

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

How do you display a plot with matplotlib

A

plt.show()

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

How do you display a colorbar

A

plt.colorbar()

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