Exam 1 Flashcards

1
Q

Dataframes is tabular data with built-in functions (True or False)

A

True

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

Integer

A

whole number

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

Float

A

has decimal

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

Boolean

A

True or False

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

String

A

in quotations

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

df.head()

df.describe()

After running those exact lines in a cell, the output of the cell will show the first 5 rows of the dataframe, followed by the statistics of the numeric columns. (True or False)

A

False

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

type(a)

type(b)

type(c)

type(d)

The exact lines of code above are executed in a code cell after a, b, c, and d are created. The output in the cell will be the data types of a, b, c, and d. (True or False)

A

False

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

a = 3

b = 9

a = b / a

print(a)

The output displays:

3.0

(True or False)

A

True

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

def my_average(num1, num2, num3):

avg = (num1 + num2 + num3) / 3

return avg

avg_ret = my_average(1, 3, 2)

What is the data type of avg_ret?

A

Float

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

If we wanted to replace all NaNs with a known value, we would use which function?

A

Mean

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