test Flashcards
1
Q
distribution, what kind of plot?
A
histogram
2
Q
rename columns?
A
dfrename=df.renam(columns={‘OGColumn’= ‘newcolumn’})
3
Q
order columns
A
df.columns=[‘columnsname’, ‘column’]
but you have to list all of them
4
Q
find total # of rows under a column?
A
df[‘column’].nunique()
5
Q
what kind of plot to show correlation?
A
scatter plot
6
Q
when to use list?
A
if you have a collection of values where order matters
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