Plotting
Arrays
Symbol Syntax
More Arrays
Anything!
100

A popular data visualization and graphical plotting library for Python

What is matplotlib?

100

The command to import NumPy

import numpy as np

100

3 > 3

What is False?

100

The python library used for creating, storing, and manipulating arrays.

What is NumPy?

100

The function used to make an array

What is np.array()?

200

plot x = months and y = average snow fall

what is plt.plot(x,y)?

200

Used to determine the length of an object

what is len()
200

5 != 3

What is True?

200

The function used to sum the elements in an array

np.sum()

200

The function used to look for an element equal to "True"

what is np.any()?

300

Function used to fit figure elements (title, labels, etc.) on a plot without overlapping

what is plt.tight_layout()?

300

The function used to make an array of zeros


What is np.zeros()?

300

2**3

What is 8? 

300

Function used to load arrays or pickled files

what is np.load()?

300

Syntax used to print "Hello, My name is [Insert name variable]"

What is print(f"Hello, My name is {name}")?

400

Function used to place a grid on a plot

what is plt.grid()

400

Function used to convert array = ([[1,2], [3,4]]) to a single dimension. 

array.flatten()

400

Symbol used to check for equality

==


400

The function argument used to specify performing an action along the rows of an array

What is axis = 0?
400

The function that converts a specified value into a string

what is str()?

500

Python syntax used to create a subplot with 2 rows and 3 columns 

what is plt.subplots(2,3)?

500

array = np.array([0, 1, 2, 3, 4, 5])

np.where(array < 2)

what is [0, 1]?

500

The AND operator

what is &? or What is AND?



500

Function used to calculate the difference between consecutive elements in an array


what is np.diff()?

500

Python Syntax used to provide the following legend: Dataset 1 = "2021", Dataset 2 = "2022", Dataset 3 = "2023"

What is plt.legend(['2021', '2022', '2023'])?