Arrays
Logic and Simulation
Pandas
Numpy
Real-world Data
100

import numpy as np 

a = np.array([1, 2, 3])

print(a * 2)

[2,4,6]

100

What keyword begins every function definition?

def

100

common command to import pandas library

import pandas as pd

100

Process that runs mathematical operations on entire arrays 

Vectorization

100

Which common file format uses commas to separate data values?

CSV

200

num = np.array([83.5, 79.1, 93.7, 88.6, 92.3])

output of num.max?

93.7

200

terminates a loop immediately

break

200

If a dataframe has 97,640 rows and 15 columns, what does df.shape return?

(97640,15)

200

dtype of np.array([1, "apple", 3.0])

string

200

Acronym used when data is missing (Not a number)

NaN


300

a = np.array([10, 20])

b = np.array([1, 2])

print(a / b)

[10.0, 10.0]

300

Programming structure that repeats a random process several times

For loop

300

Displays the first 5 rows by default

df.head()

300

returns tuple describing dimensions of array

.shape

300

Returns the mean, min, and max for all numerical columns ( .__ )

.describe

400

a2 = np.array([1, 2, 3])

print(a2[a2 > 1])

[2, 3]

400

ensures the same results are produced every time

Seed

400

Does .loc[0:2] include or exclude the row at index 2?

Include (Label-based slicing is inclusive).

400

 NumPy equivalent of `range(start, stop, step)` in Python

np.arange

400

The all-in-one command for dataset inspection

500

arr = np.array([1, 4, 9])

print(np.sqrt(arr).sum())

6

500

Selects an outcome from a set of possible options

np.random.choice()

500

What statement removes a key from a dictionary?

del
500

What function checks if two conditions are both True at the same time?

np.logical_and()

500

What argument do you add to pd.read_csv() to use the first column as the row labels?

index_col = 0