A popular data visualization and graphical plotting library for Python
What is matplotlib?
The command to import NumPy
import numpy as np
3 > 3
What is False?
The python library used for creating, storing, and manipulating arrays.
What is NumPy?
The function used to make an array
What is np.array()?
plot x = months and y = average snow fall
what is plt.plot(x,y)?
Used to determine the length of an object
5 != 3
What is True?
The function used to sum the elements in an array
np.sum()
The function used to look for an element equal to "True"
what is np.any()?
Function used to fit figure elements (title, labels, etc.) on a plot without overlapping
what is plt.tight_layout()?
The function used to make an array of zeros
What is np.zeros()?
2**3
What is 8?
Function used to load arrays or pickled files
what is np.load()?
Syntax used to print "Hello, My name is [Insert name variable]"
What is print(f"Hello, My name is {name}")?
Function used to place a grid on a plot
what is plt.grid()
Function used to convert array = ([[1,2], [3,4]]) to a single dimension.
array.flatten()
Symbol used to check for equality
==
The function argument used to specify performing an action along the rows of an array
The function that converts a specified value into a string
what is str()?
Python syntax used to create a subplot with 2 rows and 3 columns
what is plt.subplots(2,3)?
array = np.array([0, 1, 2, 3, 4, 5])
np.where(array < 2)
what is [0, 1]?
The AND operator
what is &? or What is AND?
Function used to calculate the difference between consecutive elements in an array
what is np.diff()?
Python Syntax used to provide the following legend: Dataset 1 = "2021", Dataset 2 = "2022", Dataset 3 = "2023"
What is plt.legend(['2021', '2022', '2023'])?