test Flashcards

1
Q

distribution, what kind of plot?

A

histogram

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

rename columns?

A

dfrename=df.renam(columns={‘OGColumn’= ‘newcolumn’})

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

order columns

A

df.columns=[‘columnsname’, ‘column’]
but you have to list all of them

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

find total # of rows under a column?

A

df[‘column’].nunique()

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

what kind of plot to show correlation?

A

scatter plot

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

when to use list?

A

if you have a collection of values where order matters

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

when to use a dictionary?

A

if you need a sort of lookup table where specified information needs to grabbed fast by using keys

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