Seaborn and MatPlotLib Flashcards
Commands and formatting for Seaborn and MatPlotLib functions and calls. (11 cards)
Format a correlation matrix
DataFrame[[‘col1’, ‘col2’, …]].corr(numeric_only=True)
What does a Boxplot tell you?
Identifies the Statistical 5, Min, Max, Quartiles and Outliers.
What does KDE stand for?
Kernal Density …
What does IQR stand for?
Inter-Quartile Range
Calculate the whiskers in a numerical column
Min whisker = Q1-1.5IQR
Max whisker = Q3+1.5IQR
What are the 3 missing value types and their acronyms?
Missing Completely at Random (MCAR)
Missing at Random (MAR)
Missing Not at Random (MNAR)
Format a Joint Plot and identify what it’s best used for.
sns.jointplot(data=DataFrame, vals=list_columns)
What are the functions that set labels and denominations for the x and y axis marks?
matplotlib.pyplot.xticks() and matplotlib.pyplot.yticks()
plt.xticks(<range_of_numeric_values>, <columns/tick_labels>, rotation=?)</range_of_numeric_values>
What function would you use to display a heat/color map in matplotlib?
plt.imshow()
plt.imshow(X=input_data, cmap=color_map, interpolation=<method_used_to_display_an_image>)</method_used_to_display_an_image>
How do you display a plot with matplotlib
plt.show()
How do you display a colorbar
plt.colorbar()